parameters: (path)
return_statement: return (
        subdir
        for (subdir, files) in io_wrapper.ListRecursively(path)
        if list(filter(event_accumulator.IsTensorFlowEventsFile, files))
    )
docstring: Returns subdirectories with event files on path.
docstring_summary: Returns subdirectories with event files on path.
docstring_tokens: Returns subdirectories with event files on path .
function: def GetLogdirSubdirectories(path):
    """Returns subdirectories with event files on path."""
    if io_wrapper.Exists(path) and not io_wrapper.IsDirectory(path):
      raise ValueError('GetLogdirSubdirectories: path exists and is not a '
                       'directory, %s' % path)
  
    # ListRecursively just yields nothing if the path doesn't exist.
    return (
        subdir
        for (subdir, files) in io_wrapper.ListRecursively(path)
        if list(filter(event_accumulator.IsTensorFlowEventsFile, files))
    )
function_tokens: def GetLogdirSubdirectories ( path ) : if io_wrapper . Exists ( path ) and not io_wrapper . IsDirectory ( path ) : raise ValueError ( 'GetLogdirSubdirectories: path exists and is not a ' 'directory, %s' % path ) # ListRecursively just yields nothing if the path doesn't exist. return ( subdir for ( subdir , files ) in io_wrapper . ListRecursively ( path ) if list ( filter ( event_accumulator . IsTensorFlowEventsFile , files ) ) )