def METHOD_NAME(ibs, gid_list):
    """FIXME: __name__
    Get all the relationship ids belonging to the input images
    if lblimage lbltype is specified the relationship ids are filtered to
    be only of a specific lbltype/category/type
    """
    params_iter = ((gid,) for gid in gid_list)
    glrids_list = ibs.db.get_where_eq(
        const.GL_RELATION_TABLE,
        ('glr_rowid',),
        params_iter,
        ('image_rowid',),
        unpack_scalars=False,
    )
    return glrids_list