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)
 else:
  source_tree = None
  output_path = input_path
 return (source_tree, output_path)

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 ) else : source_tree = None output_path = input_path return ( source_tree , output_path )
given input_path .