code: def identity_map(self):
          
          pk = self.identity_attributes()
          values = {}
          for name in pk:
              values[name] = getattr(self, name)
          return values
docs: (:class:`typing.Mapping`\ [:class:`str`, :class:`object`])
          A dictionary of the values of primary key fields with their names.
  
          .. versionadded:: 1.0.0