code: def wheel_graph(n, create_using=None):
      n, nodes = _number_and_nodes(n)
      graph_class, inplace = _create_using_class(create_using)
      if graph_class.is_directed():
          raise nx.NetworkXError("Directed Graph not supported")
      if n < 2:
          G = graph_class.from_coo(
              n,
              cp.empty(0, index_dtype),
              cp.empty(0, index_dtype),
              id_to_key=nodes,
          )
      else:
          # Like star_graph
          flat = cp.zeros(n - 1, index_dtype)
          ramp = cp.arange(1, n, dtype=index_dtype)
          # Like cycle_graph
          if n < 3:
              src_indices = cp.empty(0, index_dtype)
              dst_indices = cp.empty(0, index_dtype)
          elif n > 3:
              src_indices = cp.arange(2, 2 * n, dtype=index_dtype) // 2
              dst_indices = (
                  cp.arange(1, n, dtype=index_dtype)[:, None]
                  + cp.array([-1, 1], index_dtype)
              ).ravel()
              dst_indices[-1] = 1
              dst_indices[0] = n - 1
          elif graph_class.is_multigraph():
              src_indices = cp.array([1, 1, 2, 2], index_dtype)
              dst_indices = cp.array([2, 2, 1, 1], index_dtype)
          else:
              src_indices = cp.array([1, 2], index_dtype)
              dst_indices = cp.array([2, 1], index_dtype)
          src_indices = cp.hstack((flat, ramp, src_indices))
          dst_indices = cp.hstack((ramp, flat, dst_indices))
          G = graph_class.from_coo(
              n, src_indices, dst_indices, id_to_key=nodes
          )
      if inplace:
          return create_using._become(G)
      return G
  
imports: import itertools
  from numbers import Integral
  import cupy
  import networkx
  import numpy
  import nx_cugraph
  from ..utils import _get_int_dtype, index_dtype, networkx_algorithm
  from ._utils import _IS_NX32_OR_LESS, _common_small_graph, _complete_graph_indices, _create_using_class, _ensure_int, _ensure_nonnegative_int, _number_and_nodes
label_desc: Use image node_id 16 for calling a global function with example usage: wheel_graph(n, create_using) and returns: G, create_using