def METHOD_NAME():  # pylint: disable=invalid-name
  """Returns `True` if v2 control flow is enabled.
  Note: v2 control flow is always enabled inside of tf.function.
  """
  return control_flow_util.EnableControlFlowV2(ops.get_default_graph())