pylabrobot.resources.Trough.register_will_assign_resource_callback# Trough.register_will_assign_resource_callback(callback: Callable[[Resource], None])# Add a callback that will be called before a resource is assigned to this resource. These callbacks can raise errors in case the proposed assignment is invalid. Parameters: callback (Callable[[Resource], None])