code: def index(self, value):
          
          # pylint: disable=arguments-differ
          for idx, val in enumerate(self):
              if value == val:
                  return idx
          raise ValueError('{0!r} is not in dict'.format(value))
docs: Return index of *value* in self.
  
          Raises ValueError if *value* is not found.