code: def test_construct_errors(self, left, right):
      # GH#23013
      msg = (
          "Only numeric, Timestamp and Timedelta endpoints are allowed"
      )
      with pytest.raises(ValueError, match=msg):
          Interval(left, right)
  
imports: import pytest
  from pandas import Interval, Period, Timestamp
label_desc: Use image node_id 1 for calling the TestIntervalConstructors obj's underlying member method code with example usage: obj.test_construct_errors(left, right) without return types