

def enum(*sequential, **named):
    enums = dict(zip(sequential, range(len(sequential))), **named)
    reverse = dict(((value, key) for (key, value) in enums.iteritems()))
    enums['reverse_mapping'] = reverse
    return type('Enum', (), reverse)

dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/pandevice/pandevice/__init__.py enum/VarMisuse@75/87 `enums`->`reverse`