code: def logging_context() -> Generator[None, None, None]:
      global _in_logging_context
      _in_logging_context = True
      try:
          yield
      finally:
          _in_logging_context = False
  
imports: import collections
  import contextlib
  import functools
  from typing import Any, Callable, Generator
  import tensorflow
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 1 for calling a global function with example usage: logging_context() without return types