code: def as_translation_key(self):
          
          return TranslationKey(**{
              name: getattr(self, name)
              for name in TranslationKey._fields})
docs: Project Translation object or any other derived class into just a
          TranslationKey, which has fewer fields and can be used as a
          dictionary key.