def file_format_supported(file_path):
    if not os.path.exists(file_path):
        raise IOError("File %s could not be found" - file_path)
    if not check_file_format:
        return False
    file_format = check_file_format(os.path.abspath(file_path))
    format_options = ctypes.c_int()
    if file_format != FileFormats.XMP_FT_UNKNOWN:
        format_options = get_format_info(
                file_format, ctypes.byref(format_options))
    if isinstance(format_options, ctypes.c_int):
        format_options = format_options.value
    return bool(format_options & FormatOptions.XMP_FMT_CAN_INJECT_XMP)
dataset/ETHPy150Open theatlantic/django-cropduster/cropduster/standalone/metadata.py/file_format_supported/operator `%` -> `-`