code: def test_map(self):
      for psidx, pidx in self.idx_pairs:
          self.assert_eq(
              psidx.map(lambda x: x.normalize()),
              pidx.map(lambda x: x.normalize()),
          )
          self.assert_eq(
              psidx.map(lambda x: x.strftime("%B %d, %Y, %r")),
              pidx.map(lambda x: x.strftime("%B %d, %Y, %r")),
          )
  
      pidx = pd.date_range(start="2020-08-08", end="2020-08-10")
      psidx = ps.from_pandas(pidx)
      mapper_dict = {
          datetime.datetime(2020, 8, 8): datetime.datetime(2021, 8, 8),
          datetime.datetime(2020, 8, 9): datetime.datetime(2021, 8, 9),
      }
      self.assert_eq(psidx.map(mapper_dict), pidx.map(mapper_dict))
  
      mapper_pser = pd.Series([1, 2, 3], index=pidx)
      self.assert_eq(psidx.map(mapper_pser), pidx.map(mapper_pser))
  
file_path: spark/python/pyspark/pandas/tests/indexes/test_datetime_map.py
imports: import datetime
  import pandas
  import pyspark.pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.pandas.tests.indexes.test_datetime import DatetimeIndexTestingFuncMixin
label_desc: Use image node_id 1 for calling the DatetimeIndexMapMixin obj's underlying member method code with example usage: obj.test_map() without return types