parameters: (input_path)
return_statement: return (source_tree, output_path)
docstring: Given input_path, returns a tuple with sourceTree and path values.
  
    Examples:
      input_path     (source_tree, output_path)
      '$(VAR)/path'  ('VAR', 'path')
      '$(VAR)'       ('VAR', None)
      'path'         (None, 'path')
docstring_summary: Given input_path, returns a tuple with sourceTree and path values.
docstring_tokens: Given input_path returns a tuple with sourceTree and path values .
function: def SourceTreeAndPathFromPath(input_path):
    """Given input_path, returns a tuple with sourceTree and path values.
  
    Examples:
      input_path     (source_tree, output_path)
      '$(VAR)/path'  ('VAR', 'path')
      '$(VAR)'       ('VAR', None)
      'path'         (None, 'path')
    """
  
    source_group_match = _path_leading_variable.match(input_path)
    if source_group_match:
      source_tree = source_group_match.group(1)
      output_path = source_group_match.group(3)  # This may be None.
    else:
      source_tree = None
      output_path = input_path
  
    return (source_tree, output_path)
function_tokens: def SourceTreeAndPathFromPath ( input_path ) : source_group_match = _path_leading_variable . match ( input_path ) if source_group_match : source_tree = source_group_match . group ( 1 ) output_path = source_group_match . group ( 3 ) # This may be None. else : source_tree = None output_path = input_path return ( source_tree , output_path )