def paths_are_consistent_with_hash_prefixes(paths, path_hash_prefixes):
<EOL>securesystemslib.formats.RELPATHS_SCHEMA.check_match(paths)<EOL>securesystemslib.formats.PATH_HASH_PREFIXES_SCHEMA.check_match(path_hash_prefixes)<EOL>consistent = False<EOL>for path in paths:<EOL><INDENT>path_hash = get_target_hash(path)<EOL>consistent = False<EOL>for path_hash_prefix in path_hash_prefixes:<EOL><INDENT>if path_hash.startswith(path_hash_prefix):<EOL><INDENT>consistent = True<EOL>break<EOL><DEDENT><DEDENT>if not consistent:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return consistent<EOL>
<Purpose>
  Determine whether a list of paths are consistent with their alleged path
  hash prefixes. By default, the SHA256 hash function is used.

<Arguments>
  paths:
    A list of paths for which their hashes will be checked.

  path_hash_prefixes:
    The list of path hash prefixes with which to check the list of paths.

<Exceptions>
  securesystemslib.exceptions.FormatError:
    If the arguments are improperly formatted.

<Side Effects>
  No known side effects.

<Returns>
  A Boolean indicating whether or not the paths are consistent with the
  hash prefix.