code: def test_interval_index_from_breaks(closed):
      breaks = [0, 3, 6, 10]
      pindex = pd.IntervalIndex.from_breaks(breaks, closed=closed)
      gindex = IntervalIndex.from_breaks(breaks, closed=closed)
  
      assert_eq(pindex, gindex)
  
imports: import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_210
  from cudf.core.index import IntervalIndex, interval_range
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 17 for calling a global function with example usage: test_interval_index_from_breaks(closed) without return types