code: def test_get_event_duration_listeners_returns_a_copy(self):
      original_duration_listeners = (
          jax_src_monitoring.get_event_duration_listeners()
      )
      callback = lambda event, durations: None
  
      original_duration_listeners.append(callback)
  
      self.assertNotIn(
          callback, jax_src_monitoring.get_event_duration_listeners()
      )
      self.assertNotEqual(
          original_duration_listeners,
          jax_src_monitoring.get_event_duration_listeners(),
      )
  
file_path: jax/tests/monitoring_test.py
imports: from absl.testing import absltest
  from jax import monitoring
  from jax._src import monitoring
label_desc: Use image node_id 8 for calling the MonitoringTest obj's underlying member method code with example usage: obj.test_get_event_duration_listeners_returns_a_copy() without return types