code: def test_create_interval_series(data1, data2, data3, data4, closed):
      expect = pd.Series(
          pd.Interval(data1, data2, closed), dtype="interval"
      )
      got = cudf.Series(
          pd.Interval(data1, data2, closed), dtype="interval"
      )
      assert_eq(expect, got)
  
      expect_two = pd.Series(
          [
              pd.Interval(data1, data2, closed),
              pd.Interval(data3, data4, closed),
          ],
          dtype="interval",
      )
      got_two = cudf.Series(
          [
              pd.Interval(data1, data2, closed),
              pd.Interval(data3, data4, closed),
          ],
          dtype="interval",
      )
      assert_eq(expect_two, got_two)
  
      expect_three = pd.Series(
          [
              pd.Interval(data1, data2, closed),
              pd.Interval(data3, data4, closed),
              pd.Interval(data1, data2, closed),
          ],
          dtype="interval",
      )
      got_three = cudf.Series(
          [
              pd.Interval(data1, data2, closed),
              pd.Interval(data3, data4, closed),
              pd.Interval(data1, data2, closed),
          ],
          dtype="interval",
      )
      assert_eq(expect_three, got_three)
  
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 1 for calling a global function with example usage: test_create_interval_series(data1, data2, data3, data4, closed) without return types