def METHOD_NAME(script_id: uuid.UUID) -> ExecutionScript:
    try:
        script = _get_script_by_id_from_local(script_id)
    except IndexError:
        log(f"script {script_id!r} is not known locally - checking remote")
        try:
            script = _get_script_by_id_from_remote(script_id)
        except IndexError:
            log(f"script {script_id!r} is not known")
            raise IndexError
    return script