def METHOD_NAME(self, file: FileHandle):
    if not self.does_match_ext(file.filename):
        return False
    if not file.is_json:
        return False
    if "annotations" not in file.json:
        return False
    if "categories" not in file.json:
        return False
    return True