code: def ChangeUserStatus(self, Status):
          
          if self.CurrentUserStatus.upper() == Status.upper():
              return
          self._ChangeUserStatus_Event = threading.Event()
          self._ChangeUserStatus_Status = Status.upper()
          self.RegisterEventHandler('UserStatus', self._ChangeUserStatus_UserStatus)
          self.CurrentUserStatus = Status
          self._ChangeUserStatus_Event.wait()
          self.UnregisterEventHandler('UserStatus', self._ChangeUserStatus_UserStatus)
          del self._ChangeUserStatus_Event, self._ChangeUserStatus_Status
docs: Changes the online status for the current user.
  
          :Parameters:
            Status : `enums`.cus*
              New online status for the user.
  
          :note: This function waits until the online status changes. Alternatively, use the
                 `CurrentUserStatus` property to perform an immediate change of status.