parameters: ()
docstring: Returns a context manager that skips current enclosing context if there is any.
docstring_summary: Returns a context manager that skips current enclosing context if there is any.
docstring_tokens: Returns a context manager that skips current enclosing context if there is any .
function: def outside_or_skip_tpu_context():
    """Returns a context manager that skips current enclosing context if there is any."""
    ctx, graph = enclosing_tpu_context_and_graph()
    if ctx is None:
      yield
    else:
      saved_context = graph._get_control_flow_context()  # pylint: disable=protected-access
      graph._set_control_flow_context(ctx.outer_context)  # pylint: disable=protected-access
      yield
      graph._set_control_flow_context(saved_context)
function_tokens: def outside_or_skip_tpu_context ( ) : ctx , graph = enclosing_tpu_context_and_graph ( ) if ctx is None : yield else : saved_context = graph . _get_control_flow_context ( ) # pylint: disable=protected-access graph . _set_control_flow_context ( ctx . outer_context ) # pylint: disable=protected-access yield graph . _set_control_flow_context ( saved_context )