code: def _get_referenced_libs(specs):
      
      active_libs = set()
      for app_spec in specs['apps'].values():
          for lib in app_spec['depends']['libs']:
              active_libs.add(lib)
      return active_libs
docs: Returns all libs that are referenced in specs.apps.depends.libs