class_docstr: Tests for `log_latency`.
class_docstr_tok: ["Tests","for","`","log_latency","`","."]
code: def test_context_manager_explicit_name(self):
      with self.assert_logs_matching("ENTER my_slow_region"):
          with timing.log_latency("my_slow_region"):
              pass
  
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 5 for calling the LogLatencyTest obj's underlying member method code with example usage: obj.test_context_manager_explicit_name() without return types