code: def test_tz_localize():
      pidx = pd.date_range("2001-01-01", "2001-01-02", freq="1s")
      pidx = pidx.astype("<M8[ns]")
      idx = cudf.from_pandas(pidx)
      assert pidx.dtype == idx.dtype
      assert_eq(
          pidx.tz_localize("America/New_York"),
          idx.tz_localize("America/New_York"),
      )
  
imports: import pandas
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: test_tz_localize() without return types