class_docstr: Context Manager that interpolates exceptions received by AtomicFunction.
class_docstr_tok: ["Context","Manager","that","interpolates","exceptions","received","by","AtomicFunction","."]
code: def __exit__(self, typ, exc, tb):
      if not exc or not isinstance(exc, errors.OpError):
          return False
      exc = typing.cast(errors.OpError, exc)
      message = compat.as_text(exc.message)
      (
          parsed_message,
          func_tags,
          node_tags,
      ) = error_interpolation.parse_message(message)
      deepest_func = None
      for func_tag in func_tags:
          if func_tag.name == compat.as_str(self._func.name):
              deepest_func = self._func
          elif deepest_func:
              next_func = None
              for child_func in deepest_func.children:
                  if func_tag.name == compat.as_str(child_func.name):
                      next_func = child_func
                      break
              if next_func is not None and isinstance(
                  next_func, AtomicFunction
              ):
                  deepest_func = next_func
      if deepest_func:
          exc._message = self.interpolate(
              parsed_message,
              [t.name for t in node_tags],
              deepest_func.graph_debug_info,
          )
      return False
  
imports: import dataclasses
  import traceback
  import typing
  from typing import Any, Dict, List, Optional, Sequence, Union
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.core.framework import function_pb2
  from tensorflow.core.framework import graph_debug_info_pb2
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.eager import context
  from tensorflow.python.eager import record
  from tensorflow.python.eager.polymorphic_function import attributes
  from tensorflow.python.eager.polymorphic_function import function_type_utils
  from tensorflow.python.framework import auto_control_deps_utils
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import error_interpolation
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import function_def_to_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import handle_data_util
  from tensorflow.python.types import core
  from tensorflow.python.util import compat
  from tensorflow.python.util import function_utils
  from tensorflow.python.util import tf_stack
label_desc: Use image node_id 4 for calling the InterpolateRuntimeError obj's underlying member method code with example usage: obj.__exit__(typ, exc, tb) and returns: False, False