def CheckImageValidity(image, error_message):
  if image is not None and not (utils.IsUrl(image) or os.path.isabs(image)):
    raise errors.OpPrereqError(error_message)
Scans the path specification for a supported storage media image format.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/CheckImageValidity--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/helpers/source_scanner.py/SourceScanner.ScanForStorageMediaImage