def CheckVintf(inp, info_dict=None):
    '\n  Checks VINTF metadata of a target files zip or extracted target files\n  directory.\n\n  Args:\n    inp: path to the (possibly extracted) target files archive.\n    info_dict: The build-time info dict. If None, it will be loaded from inp.\n\n  Returns:\n    True if VINTF check is skipped or compatible, False if incompatible. Raise\n    a RuntimeError if any error occurs.\n  '
    if os.path.isdir(inp):
        logger.info('Checking VINTF compatibility extracted target files...')
        return CheckVintfFromExtractedTargetFiles(inp, info_dict)
    if zipfile.is_zipfile(inp):
        logger.info('Checking VINTF compatibility target files...')
        return CheckVintfFromTargetFiles(inp, info_dict)
    raise ValueError('{} is not a valid directory or zip file'.format(inp))
Checks VINTF metadata of a target files zip or extracted target files
directory.

Args:
  inp: path to the (possibly extracted) target files archive.
  info_dict: The build-time info dict. If None, it will be loaded from inp.

Returns:
  True if VINTF check is skipped or compatible, False if incompatible. Raise
  a RuntimeError if any error occurs.
def CheckVintf(inp, info_dict=None):
    '\n  Checks VINTF metadata of a target files zip or extracted target files\n  directory.\n\n  Args:\n    inp: path to the (possibly extracted) target files archive.\n    info_dict: The build-time info dict. If None, it will be loaded from inp.\n\n  Returns:\n    True if VINTF check is skipped or compatible, False if incompatible. Raise\n    a RuntimeError if any error occurs.\n  '
    if os.path.isdir(inp):
        logger.info('Checking VINTF compatibility extracted target files...')
        return CheckVintfFromExtractedTargetFiles(inp, info_dict)
    if zipfile.is_zipfile(inp):
        logger.info('Checking VINTF compatibility target files...')
        return CheckVintfFromTargetFiles(inp, info_dict)
    raise ValueError('{} is not a valid directory or zip file'.format(inp))