class_docstr: Tests specific to IntervalIndex.from_tuples
code: def test_constructor_errors(self):
      # non-tuple
      tuples = [(0, 1), 2, (3, 4)]
      msg = "IntervalIndex.from_tuples received an invalid item, 2"
      with pytest.raises(TypeError, match=msg.format(t=tuples)):
          IntervalIndex.from_tuples(tuples)
  
      # too few/many items
      tuples = [(0, 1), (2,), (3, 4)]
      msg = "IntervalIndex.from_tuples requires tuples of length 2, got {t}"
      with pytest.raises(ValueError, match=msg.format(t=tuples)):
          IntervalIndex.from_tuples(tuples)
  
      tuples = [(0, 1), (2, 3, 4), (5, 6)]
      with pytest.raises(ValueError, match=msg.format(t=tuples)):
          IntervalIndex.from_tuples(tuples)
  
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 3 for calling the TestFromTuples obj's underlying member method code with example usage: obj.test_constructor_errors() without return types