docs: def get_name2value_dict(self):
          """returns a dictionary, that maps between `enum` name( key ) and
          `enum` value( value )"""
          x = {}
          for val, num in self._values:
              x[val] = num
          return x