code: def test_apply_box_td64():
      # timedelta
      vals = [pd.Timedelta("1 days"), pd.Timedelta("2 days")]
      ser = Series(vals)
      assert ser.dtype == "timedelta64[ns]"
      res = ser.apply(
          lambda x: f"{type(x).__name__}_{x.days}", by_row="compat"
      )
      exp = Series(["Timedelta_1", "Timedelta_2"])
      tm.assert_series_equal(res, exp)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, concat, date_range, timedelta_range
  import pandas._testing
  from pandas.tests.apply.common import series_transform_kernels
label_desc: Use image node_id 12 for calling a global function with example usage: test_apply_box_td64() without return types