code: def _str_scalar_to_category(size, val):
      return cudf.core.column.build_categorical_column(
          categories=cudf.core.column.as_column([val], dtype="str"),
          codes=cudf.core.column.column.full(size, 0, dtype=np.int32),
          mask=None,
          size=size,
          offset=0,
          null_count=0,
          ordered=False,
      )
  
file_path: cugraph/python/cugraph/cugraph/structure/hypergraph.py
imports: import cudf
  import numpy
  from cugraph.structure.graph_classes import Graph
label_desc: Use image node_id 6 for calling a global function with example usage: _str_scalar_to_category(size, val) and returns: cudf