def METHOD_NAME(self, tool_consumer_instance_guid, resource_link_id):
    """Get an assignment by resource_link_id."""
    return (
        self._db.query(Assignment)
        .filter_by(
            tool_consumer_instance_guid=tool_consumer_instance_guid,
            resource_link_id=resource_link_id,
        )
        .one_or_none()
    )