class_docstr: Tests specific to the IntervalIndex/Index constructors
code: def test_override_inferred_closed(self, constructor, data, closed):
      # GH 19370
      if isinstance(data, IntervalIndex):
          tuples = data.to_tuples()
      else:
          tuples = [
              (iv.left, iv.right) if notna(iv) else iv for iv in data
          ]
      expected = IntervalIndex.from_tuples(tuples, closed=closed)
      result = constructor(data, closed=closed)
      tm.assert_index_equal(result, expected)
  
imports: from functools import partial
  import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas.core.dtypes.common import is_unsigned_integer_dtype
  from pandas.core.dtypes.dtypes import IntervalDtype
  from pandas import Categorical, CategoricalDtype, CategoricalIndex, Index, Interval, IntervalIndex, date_range, notna, period_range, timedelta_range
  import pandas._testing
  from pandas.core.arrays import IntervalArray
  import pandas.core.common
label_desc: Use image node_id 6 for calling the TestClassConstructors obj's underlying member method code with example usage: obj.test_override_inferred_closed(constructor, data, closed) without return types