def METHOD_NAME(task):
    types = ["none", "naive", "online"]
    for t in types:
        if f"--collisions={t}" in task["command"]:
            return t
    raise RuntimeError(f"Unknown collision for task {task}")