parameters: (graph=None)
return_statement: return globalstep
docstring: Returns and create (if necessary) the global step variable.
  
    Args:
      graph: The graph in which to create the global step. If missing, use default
          graph.
  
    Returns:
      the tensor representing the global step variable.
docstring_summary: Returns and create (if necessary) the global step variable.
docstring_tokens: Returns and create ( if necessary ) the global step variable .
function: def get_or_create_global_step(graph=None):
    """Returns and create (if necessary) the global step variable.
  
    Args:
      graph: The graph in which to create the global step. If missing, use default
          graph.
  
    Returns:
      the tensor representing the global step variable.
    """
    graph = ops.get_default_graph() if graph is None else graph
    globalstep = get_global_step(graph)
    if globalstep is None:
      globalstep = create_global_step(graph)
    return globalstep
function_tokens: def get_or_create_global_step ( graph = None ) : graph = ops . get_default_graph ( ) if graph is None else graph globalstep = get_global_step ( graph ) if globalstep is None : globalstep = create_global_step ( graph ) return globalstep