original_docstring: 
      Create and use a new name scope
      Arguments:
          name (str): Create a new name scope within the current name scope
          reuse_scope (bool): Reuse scope if name already exists. If False (default) and the name
                              does exist, then create a new scope with a unique version of name
      Returns:
          NameScope: The name scope.
      
docstring: Create and use a new name scope
docstring_tokens: Create and use a new name scope
code: def name_scope(name=None, reuse_scope=False):
      """
      Create and use a new name scope
      Arguments:
          name (str): Create a new name scope within the current name scope
          reuse_scope (bool): Reuse scope if name already exists. If False (default) and the name
                              does exist, then create a new scope with a unique version of name
      Returns:
          NameScope: The name scope.
      """
      if reuse_scope:
          scope = NameScope.get_or_create_scope(name)
      else:
          scope = NameScope(name)
  
      _get_thread_name_scope().append(scope)
  
      try:
          yield (scope)
      finally:
          _get_thread_name_scope().pop()
code_tokens: def name_scope ( name = None , reuse_scope = False ) : if reuse_scope : scope = NameScope . get_or_create_scope ( name ) else : scope = NameScope ( name ) _get_thread_name_scope ( ) . append ( scope ) try : yield ( scope ) finally : _get_thread_name_scope ( ) . pop ( )
short_docstring: Create and use a new name scope
short_docstring_tokens: Create and use a new name scope
comment: """
      Create and use a new name scope
      Arguments:
          name (str): Create a new name scope within the current name scope
          reuse_scope (bool): Reuse scope if name already exists. If False (default) and the name
                              does exist, then create a new scope with a unique version of name
      Returns:
          NameScope: The name scope.
      """