def METHOD_NAME(file_path):
    checksec_process = subprocess.run(
        f'{SHELL_SCRIPT} --file={file_path} --format=json --extended', shell=True, stdout=PIPE, stderr=STDOUT, text=True
    )
    if checksec_process.returncode != 0:
        raise ValueError(f'Checksec script exited with non-zero return code {checksec_process.returncode}')
    return json.loads(checksec_process.stdout)[str(file_path)]