code: def test_map_box_td64(unit):
      # timedelta
      vals = [pd.Timedelta("1 days"), pd.Timedelta("2 days")]
      ser = Series(vals).dt.as_unit(unit)
      assert ser.dtype == f"timedelta64[{unit}]"
      res = ser.map(lambda x: f"{type(x).__name__}_{x.days}")
      exp = Series(["Timedelta_1", "Timedelta_2"])
      tm.assert_series_equal(res, exp)
  
imports: from collections import Counter, defaultdict
  from decimal import Decimal
  import math
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, bdate_range, date_range, isna, timedelta_range
  import pandas._testing
label_desc: Use image node_id 38 for calling a global function with example usage: test_map_box_td64(unit) without return types