code: def test_interval_with_datetime(tz, box):
      dti = pd.date_range(
          start=pd.Timestamp("20180101", tz=tz),
          end=pd.Timestamp("20181231", tz=tz),
          freq="M",
      )
      pobj = box(pd.IntervalIndex.from_breaks(dti))
      if tz is None:
          gobj = cudf.from_pandas(pobj)
          assert_eq(pobj, gobj)
      else:
          with pytest.raises(NotImplementedError):
              cudf.from_pandas(pobj)
  
file_path: cudf/python/cudf/cudf/tests/test_interval.py
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 5 for calling a global function with example usage: test_interval_with_datetime(tz, box) without return types