<｜begin▁of▁sentence｜>### Instruction:
How can we create a star graph using the decorator `nodes_or_number` from NetworkX which allows specifying the number of nodes directly or providing a container of node labels, both resulting in a star graph where the central node has edges connecting to all other nodes?
### Response:
import networkx as nx

@nx.utils.nodes_or_number(0)
def create_star_graph(nodes):
    return nx.star_graph(nodes)

# Create a star graph with 5 nodes
star_g = create_star_graph(5)

# Create a star graph with specified nodes
star_g_custom = create_star_graph(['a', 'b', 'c', 'd', 'e'])

print(star_g.edges())
print(star_g_custom.edges())
<|EOT|>
