code: def lollipop_graph(m, n, create_using=None):
      # Like complete_graph then path_graph
      orig_m, unused_nodes_m = m
      orig_n, unused_nodes_n = n
      m, m_nodes = _number_and_nodes(m)
      if m < 2:
          raise nx.NetworkXError(
              "Invalid description: m should indicate at least 2 nodes"
          )
      n, 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")
      msrc_indices, mdst_indices = _complete_graph_indices(m)
      nsrc_indices = (
          cp.arange(2 * m - 1, 2 * m + 2 * n - 1, dtype=index_dtype)
          // 2
      )
      ndst_indices = (
          cp.arange(m - 1, m + n, dtype=index_dtype)[:, None]
          + cp.array([-1, 1], index_dtype)
      ).ravel()[1:-1]
      src_indices = cp.hstack((msrc_indices, nsrc_indices))
      dst_indices = cp.hstack((mdst_indices, ndst_indices))
      if isinstance(orig_m, Integral) and isinstance(orig_n, Integral):
          nodes = None
      else:
          nodes = list(range(m)) if m_nodes is None else m_nodes
          nodes.extend(range(n) if n_nodes is None else n_nodes)
          if len(set(nodes)) != len(nodes):
              raise nx.NetworkXError(
                  "Nodes must be distinct in containers m and n"
              )
      G = graph_class.from_coo(
          m + 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 9 for calling a global function with example usage: lollipop_graph(m, n, create_using) and returns: G, create_using