def check_gid(val):

    if isinstance(val, int):
        try:
            grp.getgrgid(val)
            return val
        except (KeyError, OverflowError):
            raise ValueError("No such group: %r" % val)

    if not isinstance(val, str):
        raise TypeError(val)
    try:
        return grp.getgrnam(val).gr_gid
    except KeyError:
        raise ValueError("No such group: %r" % val)
Set the Format bottom_color property.
dataset/ETHPy150Open benoitc/gaffer/gaffer/util.py/check_gid--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/format.py/Format.set_bottom_color