code: def test_localize_nonexistent(request, unit, zone_name):
      request.applymarker(
          pytest.mark.xfail(
              condition=(zone_name == "America/Grand_Turk"),
              reason="https://www.worldtimezone.com/dst_news/dst_news_turkscaicos03.html",  # noqa: E501
          )
      )
      s = cudf.Series(
          [
              "2018-03-11 01:30:00",
              "2018-03-11 02:00:00",
              "2018-03-11 02:30:00",
              "2018-03-11 03:00:00",
              None,
              "2018-03-11 03:30:00",
          ],
          dtype=f"datetime64[{unit}]",
      )
      expect = s.to_pandas().dt.tz_localize(
          zone_name, ambiguous="NaT", nonexistent="NaT"
      )
      got = s.dt.tz_localize(zone_name)
      assert_eq(expect, got)
  
file_path: cudf/python/cudf/cudf/tests/series/test_datetimelike.py
imports: import os
  import pandas
  import pytest
  import cudf
  from cudf import date_range
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 6 for calling a global function with example usage: test_localize_nonexistent(request, unit, zone_name) without return types