def gamma_to_lin(value, gamma):
    if not isinstance(value, (list, tuple)):
        return _gamma_to_lin(value, gamma)
    return [_gamma_to_lin(val, gamma) for val in value]
Simple gamma to lin function
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/colors_helper.py/gamma_to_lin