def main():
"""
check anti-rollback index in xbl file
"""
file_type = check_file()
makedirs("tmp", exist_ok=True)
file = argv[1]
if file_type == 'zip':
print('Checking ARB from Recovery ROM')
extract_zip(file)
**check_file()**
elif file_type == 'tgz':
print('Checking ARB from Fastboot ROM')
extract_tar(file)
check_flash_script()
else:
print("Something went wrong!")
rmtree("tmp/")
From your source code: