def METHOD_NAME(self, obj_type, obj_id, query=None):
    if not query:
        query = self.query
    obj = query.get(obj_type, obj_id,
                    {"omero.group": "-1"})
    assert obj
    assert obj.id.val == obj_id
    return obj