code: def test_overlaps_invalid_type(self, other):
      interval = Interval(0, 1)
      msg = f"`other` must be an Interval, got {type(other).__name__}"
      with pytest.raises(TypeError, match=msg):
          interval.overlaps(other)
  
file_path: pandas/pandas/tests/scalar/interval/test_overlaps.py
imports: import pytest
  from pandas import Interval, Timedelta, Timestamp
label_desc: Use image node_id 5 for calling the TestOverlaps obj's underlying member method code with example usage: obj.test_overlaps_invalid_type(other) without return types