code: def contextmanager(
      target: Callable[..., Iterator[_T]],
  ) -> Callable[..., ContextManager[_T]]:
      """A tf_decorator-aware wrapper for `contextlib.contextmanager`.
  
      Usage is identical to `contextlib.contextmanager`.
  
      Args:
        target: A callable to be wrapped in a contextmanager.
      Returns:
        A callable that can be used inside of a `with` statement.
      """
      context_manager = _contextlib.contextmanager(target)
      return tf_decorator.make_decorator(
          target, context_manager, "contextmanager"
      )
  
imports: from collections.abc import Callable, Iterator
  import contextlib
  from typing import ContextManager, TypeVar
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 1 for calling a global function with example usage: contextmanager(target) and returns: tf_decorator