class_docstr: Tests for `log_latency`.
class_docstr_tok: ["Tests","for","`","log_latency","`","."]
code: def test_decorator_explicit_name(self):
      decorated = timing.log_latency("my_costly_block")(
          self.my_slow_function
      )
      with self.assert_logs_matching("ENTER my_costly_block"):
          decorated()
  
file_path: tensorboard/tensorboard/util/timing_test.py
imports: import contextlib
  from tensorboard import test
  from tensorboard.util import tb_logging
  from tensorboard.util import timing
label_desc: Use image node_id 4 for calling the LogLatencyTest obj's underlying member method code with example usage: obj.test_decorator_explicit_name() without return types