def level_to_arg(hparams):
    return {'AutoContrast': (lambda level: ()), 'Equalize': (lambda level: ()), 'Posterize': (lambda level: (int(((level / _MAX_LEVEL) * 4)),)), 'Solarize': (lambda level: (int(((level / _MAX_LEVEL) * 256)),)), 'SolarizeAdd': (lambda level: (int(((level / _MAX_LEVEL) * 110)),)), 'Color': _enhance_level_to_arg, 'Contrast': _enhance_level_to_arg, 'Brightness': _enhance_level_to_arg, 'Sharpness': _enhance_level_to_arg, 'Cutout': (lambda level: (int(((level / _MAX_LEVEL) * hparams.cutout_const)),)), 'BBox_Cutout': (lambda level: _bbox_cutout_level_to_arg(level, hparams)), 'TranslateX_BBox': (lambda level: _translate_level_to_arg(level, hparams.translate_const)), 'TranslateY_BBox': (lambda level: _translate_level_to_arg(level, hparams.translate_const)), 'ShearX_BBox': _shear_level_to_arg, 'ShearY_BBox': _shear_level_to_arg, 'Rotate_BBox': _rotate_level_to_arg, 'Rotate_Only_BBoxes': _rotate_level_to_arg, 'ShearX_Only_BBoxes': _shear_level_to_arg, 'ShearY_Only_BBoxes': _shear_level_to_arg, 'TranslateX_Only_BBoxes': (lambda level: _translate_level_to_arg(level, hparams.translate_bbox_const)), 'TranslateY_Only_BBoxes': (lambda level: _translate_level_to_arg(level, hparams.translate_bbox_const)), 'Flip_Only_BBoxes': (lambda level: ()), 'Solarize_Only_BBoxes': (lambda level: (int(((level / _MAX_LEVEL) * 256)),)), 'Equalize_Only_BBoxes': (lambda level: ()), 'Cutout_Only_BBoxes': (lambda level: (int(((level / _MAX_LEVEL) * hparams.cutout_bbox_const)),))}
def level_to_arg(hparams):
    return {'AutoContrast': (lambda level: ()), 'Equalize': (lambda level: ()), 'Posterize': (lambda level: (int(((level / _MAX_LEVEL) * 4)),)), 'Solarize': (lambda level: (int(((level / _MAX_LEVEL) * 256)),)), 'SolarizeAdd': (lambda level: (int(((level / _MAX_LEVEL) * 110)),)), 'Color': _enhance_level_to_arg, 'Contrast': _enhance_level_to_arg, 'Brightness': _enhance_level_to_arg, 'Sharpness': _enhance_level_to_arg, 'Cutout': (lambda level: (int(((level / _MAX_LEVEL) * hparams.cutout_const)),)), 'BBox_Cutout': (lambda level: _bbox_cutout_level_to_arg(level, hparams)), 'TranslateX_BBox': (lambda level: _translate_level_to_arg(level, hparams.translate_const)), 'TranslateY_BBox': (lambda level: _translate_level_to_arg(level, hparams.translate_const)), 'ShearX_BBox': _shear_level_to_arg, 'ShearY_BBox': _shear_level_to_arg, 'Rotate_BBox': _rotate_level_to_arg, 'Rotate_Only_BBoxes': _rotate_level_to_arg, 'ShearX_Only_BBoxes': _shear_level_to_arg, 'ShearY_Only_BBoxes': _shear_level_to_arg, 'TranslateX_Only_BBoxes': (lambda level: _translate_level_to_arg(level, hparams.translate_bbox_const)), 'TranslateY_Only_BBoxes': (lambda level: _translate_level_to_arg(level, hparams.translate_bbox_const)), 'Flip_Only_BBoxes': (lambda level: ()), 'Solarize_Only_BBoxes': (lambda level: (int(((level / _MAX_LEVEL) * 256)),)), 'Equalize_Only_BBoxes': (lambda level: ()), 'Cutout_Only_BBoxes': (lambda level: (int(((level / _MAX_LEVEL) * hparams.cutout_bbox_const)),))}