code: def login_with_password(self, username, password, limit=10):
          
          warn("login_with_password is deprecated. Use login with sync=True.",
               DeprecationWarning)
          return self.login(username, password, limit, sync=True)
docs: Deprecated. Use ``login`` with ``sync=True``.
  
          Login to the homeserver.
  
          Args:
              username (str): Account username
              password (str): Account password
              limit (int): Deprecated. How many messages to return when syncing.
                  This will be replaced by a filter API in a later release.
  
          Returns:
              str: Access token
  
          Raises:
              MatrixRequestError