docs: def GetArtifactPathDependencies(rdf_artifact):
    """Return a set of knowledgebase path dependencies.
  
    Args:
      rdf_artifact: RDF artifact object.
  
    Returns:
      A set of strings for the required kb objects e.g.
      ["users.appdata", "systemroot"]
    """
    deps = set()
    for source in rdf_artifact.sources:
      for arg, value in iteritems(source.attributes):
        paths = []
        if arg in ["path", "query"]:
          paths.append(value)
        if arg == "key_value_pairs":
          # This is a REGISTRY_VALUE {key:blah, value:blah} dict.
          paths.extend([x["key"] for x in value])
        if arg in ["keys", "paths", "path_list", "content_regex_list"]:
          paths.extend(value)
        for path in paths:
          for match in artifact_utils.INTERPOLATED_REGEX.finditer(path):
            deps.add(match.group()[2:-2])  # Strip off %%.
    deps.update(GetArtifactParserDependencies(rdf_artifact))
    return deps