code: def test_cut_drop_duplicates_raises(
      x, bins, right, precision, duplicates, ordered, include_lowest
  ):
      with pytest.raises(ValueError) as excgd:
          cut(
              x=x,
              bins=bins,
              right=right,
              precision=precision,
              duplicates=duplicates,
              include_lowest=include_lowest,
              ordered=ordered,
          )
      with pytest.raises(ValueError) as excpd:
          pd.cut(
              x=x,
              bins=bins,
              right=right,
              precision=precision,
              duplicates=duplicates,
              include_lowest=include_lowest,
              ordered=ordered,
          )
  
      assert_eq(str(excgd.value), str(excpd.value))
  
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 6 for calling a global function with example usage: test_cut_drop_duplicates_raises(x, bins, right, precision, duplicates, ordered, include_lowest) without return types