code: def test_series_map_non_unique_index():
      # test for checking correct error is produced
  
      gd1 = cudf.Series([1, 2, 3, 4, np.nan])
      pd1 = pd.Series([1, 2, 3, 4, np.nan])
  
      gd_map_series = cudf.Series(["a", "b", "c"], index=[1, 1, 2])
      pd_map_series = pd.Series(["a", "b", "c"], index=[1, 1, 2])
  
      assert_exceptions_equal(
          lfunc=pd1.map,
          rfunc=gd1.map,
          check_exception_type=False,
          lfunc_args_and_kwargs=([pd_map_series],),
          rfunc_args_and_kwargs=([gd_map_series],),
      )
  
file_path: cudf/python/cudf/cudf/tests/test_seriesmap.py
imports: from itertools import product
  from math import floor
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Series
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_series_map_non_unique_index() without return types