code: def test_series_map_basic():
      gd1 = cudf.Series(["cat", np.nan, "rabbit", "dog"])
      pdf1 = gd1.to_pandas()
  
      expected_dict = pdf1.map({"cat": "kitten", "dog": "puppy"})
      actual_dict = gd1.map({"cat": "kitten", "dog": "puppy"})
  
      assert_eq(expected_dict, actual_dict)
  
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 1 for calling a global function with example usage: test_series_map_basic() without return types