parameters: ()
return_statement: return _auto_parallel_context
docstring: Get the global _auto_parallel_context, if it is not created, create a new one.
  
      Returns:
          _AutoParallelContext, the global auto parallel context.
docstring_summary: Get the global _auto_parallel_context, if it is not created, create a new one.
docstring_tokens: Get the global _auto_parallel_context if it is not created create a new one .
function: def auto_parallel_context():
      """
      Get the global _auto_parallel_context, if it is not created, create a new one.
  
      Returns:
          _AutoParallelContext, the global auto parallel context.
      """
      global _auto_parallel_context
      if _auto_parallel_context is None:
          _auto_parallel_context = _AutoParallelContext()
      return _auto_parallel_context
function_tokens: def auto_parallel_context ( ) : global _auto_parallel_context if _auto_parallel_context is None : _auto_parallel_context = _AutoParallelContext ( ) return _auto_parallel_context