code: def test_cut_labels_non_unique(
      x, bins, right, include_lowest, ordered, precision, labels
  ):
      pcat = pd.cut(
          x=x,
          bins=bins,
          right=right,
          labels=labels,
          precision=precision,
          include_lowest=include_lowest,
          ordered=ordered,
      )
      pindex = pd.CategoricalIndex(pcat) if labels else pcat
      gindex = cut(
          x=x,
          bins=bins,
          right=right,
          labels=labels,
          precision=precision,
          include_lowest=include_lowest,
          ordered=ordered,
      )
  
      assert_eq(pindex, gindex)
  
file_path: cudf/python/cudf/cudf/tests/test_cut.py
imports: import numpy
  import pandas
  import pytest
  from cudf.core.cut import cut
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 3 for calling a global function with example usage: test_cut_labels_non_unique(x, bins, right, include_lowest, ordered, precision, labels) without return types