def METHOD_NAME(task):
    types = ["no", "coll", "yes"]
    for t in types:
        if f"--straighten={t}" in task["command"]:
            return t
    raise RuntimeError(f"Unknown straightening for task {task}")