parameters: (root_dir, suffix)
return_statement: return files
docstring: Gets all files with a given suffix.
  
    Args:
      root_dir: Directory in which to search for files.
      suffix: Suffix to look for.
  
    Returns:
      A list of absolute paths to files that match.
docstring_summary: Gets all files with a given suffix.
docstring_tokens: Gets all files with a given suffix .
function: def _GetFilesWithSuffix(root_dir, suffix):
    """Gets all files with a given suffix.
  
    Args:
      root_dir: Directory in which to search for files.
      suffix: Suffix to look for.
  
    Returns:
      A list of absolute paths to files that match.
    """
    files = []
    for root, _, filenames in os.walk(root_dir):
      basenames = fnmatch.filter(filenames, '*' + suffix)
      files.extend([os.path.join(root, basename) for basename in basenames])
  
    return files
function_tokens: def _GetFilesWithSuffix ( root_dir , suffix ) : files = [ ] for root , _ , filenames in os . walk ( root_dir ) : basenames = fnmatch . filter ( filenames , '*' + suffix ) files . extend ( [ os . path . join ( root , basename ) for basename in basenames ] ) return files