code: def force_user_presence(self, user: User, presence: UserPresence):
          
          self._userid_to_presence[user.user_id] = presence
docs: Forcibly set the ``user`` presence to ``presence``.
  
          This method is only provided to cover an edge case in our use of the Matrix protocol and
          should **not** generally be used.