class_docstr: Tests specific to the IntervalIndex/Index constructors
code: def test_index_mixed_closed(self):
      # GH27172
      intervals = [
          Interval(0, 1, closed="left"),
          Interval(1, 2, closed="right"),
          Interval(2, 3, closed="neither"),
          Interval(3, 4, closed="both"),
      ]
      result = Index(intervals)
      expected = Index(intervals, dtype=object)
      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 8 for calling the TestClassConstructors obj's underlying member method code with example usage: obj.test_index_mixed_closed() without return types