def METHOD_NAME(ars: ARServer, obj_id: str, lock_tree: bool = False) -> None:
    assert ars.call_rpc(
        rpc.lock.WriteLock.Request(get_id(), rpc.lock.WriteLock.Request.Args(obj_id, lock_tree)),
        rpc.lock.WriteLock.Response,
    ).result
    event(ars, events.lk.ObjectsLocked)