code: def replace(self, **updates):
          
          state = self.dump()
          state.update(updates)
          return self.__class__(**state)
docs: Return a new profile with the given updates.
  
          Unspecified fields will be the same as this instance. See `__new__`
          for details on the arguments.