code: def test_piecewise_constant_eta(self):
      gin.parse_config(
          [
              "selectors.eta_scheduler.values=(0.5, 0.25, 0.125)",
              "selectors.eta_scheduler.breakpoints=(100, 150)",
          ]
      )
      self.assertEqual(0.5, selectors.eta_scheduler(1))
      self.assertEqual(0.5, selectors.eta_scheduler(100))
      self.assertEqual(0.25, selectors.eta_scheduler(101))
      self.assertEqual(0.25, selectors.eta_scheduler(150))
      self.assertEqual(0.125, selectors.eta_scheduler(151))
  
file_path: neural-structured-learning/research/multi_representation_adversary/multi_representation_adversary/selectors_test.py
imports: import gin
  from multi_representation_adversary import selectors
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the EtaSchedulerTest obj's underlying member method code with example usage: obj.test_piecewise_constant_eta() without return types