code: def test_construct_with_invalid_endpoints(self):
      mock_feature = Feature("feature")
      self.assertRaises(
          ValueError,
          sc.LinearIntervalBin,
          mock_feature,
          0.0,
          0.0,
          left_end=float("inf"),
      )
      self.assertRaises(
          ValueError,
          sc.LinearIntervalBin,
          mock_feature,
          0.0,
          0.0,
          right_end=float("-inf"),
      )
      self.assertRaises(
          ValueError,
          sc.LinearIntervalBin,
          mock_feature,
          0.0,
          0.0,
          1.0,
          -1.0,
      )
      self.assertRaises(
          ValueError,
          sc.LinearIntervalBin,
          mock_feature,
          0.0,
          0.0,
          0.0,
          0.0,
      )
  
imports: from unittest import TestCase
  from unittest.mock import MagicMock
  from aix360.algorithms.rule_induction.trxf.core import Feature
  import aix360.algorithms.rule_induction.trxf.scorecard
label_desc: Use image node_id 2 for calling the TestLinearIntervalBin obj's underlying member method code with example usage: obj.test_construct_with_invalid_endpoints() without return types