code: def test_delta(self):
      logger = FakeLogger()
      filtered = filters.TimeFilter(logger, time_delta=0.1)
  
      # Logged.
      filtered.write({"foo": 1})
      self.assertIn("foo", logger.last_write)
  
      # *Not* logged.
      filtered.write({"bar": 2})
      self.assertNotIn("bar", logger.last_write)
  
      # Wait out delta.
      time.sleep(0.11)
  
      # Logged.
      filtered.write({"baz": 3})
      self.assertIn("baz", logger.last_write)
  
      self.assertLen(logger.data, 2)
  
imports: import time
  from acme.utils.loggers import base
  from acme.utils.loggers import filters
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling the TimeFilterTest obj's underlying member method code with example usage: obj.test_delta() without return types