def ExtractPathsFromDependencies(self, dependencies, file_type=None):
    ret = set()
    for d in dependencies or []:
      for f in d.get('files') or []:
        p = f.get('path')
        if p and (file_type is None or file_type == f.get('type')):
          ret.add(p)
    return ret
Extract the file paths from a list of dependencies.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/targets.py/Features.ExtractPathsFromDependencies