code: def test_contains_requires_hashable_raises(self, index):
      if isinstance(index, MultiIndex):
          return  # TODO: do we want this to raise?
  
      msg = "unhashable type: 'list'"
      with pytest.raises(TypeError, match=msg):
          [] in index
  
      msg = "|".join(
          [
              r"unhashable type: 'dict'",
              r"must be real number, not dict",
              r"an integer is required",
              r"\{\}",
              r"pandas\._libs\.interval\.IntervalTree' is not iterable",
          ]
      )
      with pytest.raises(TypeError, match=msg):
          {} in index._engine
  
imports: import numpy
  import pytest
  from pandas.errors import InvalidIndexError
  from pandas.core.dtypes.common import is_float_dtype, is_scalar
  from pandas import NA, DatetimeIndex, Index, IntervalIndex, MultiIndex, NaT, PeriodIndex, TimedeltaIndex
  import pandas._testing
label_desc: Use image node_id 6 for calling the TestContains obj's underlying member method code with example usage: obj.test_contains_requires_hashable_raises(index) without return types