parameters: (filepatterns)
return_statement: return list(filenames)
docstring: Takes a list of file patterns and returns a list of resolved file names.
docstring_summary: Takes a list of file patterns and returns a list of resolved file names.
docstring_tokens: Takes a list of file patterns and returns a list of resolved file names .
function: def _expand_file_names(filepatterns):
    """Takes a list of file patterns and returns a list of resolved file names."""
    if not isinstance(filepatterns, (list, tuple, set)):
      filepatterns = [filepatterns]
    filenames = set()
    for filepattern in filepatterns:
      names = set(gfile.Glob(filepattern))
      filenames |= names
    return list(filenames)
function_tokens: def _expand_file_names ( filepatterns ) : if not isinstance ( filepatterns , ( list , tuple , set ) ) : filepatterns = [ filepatterns ] filenames = set ( ) for filepattern in filepatterns : names = set ( gfile . Glob ( filepattern ) ) filenames |= names return list ( filenames )