code: def register_with_password(self, username, password):
          
          response = self.api.register(
                  auth_body={"type": "m.login.dummy"},
                  kind='user',
                  username=username,
                  password=password,
          )
          return self._post_registration(response)
docs: Register for a new account on this HS.
  
          Args:
              username (str): Account username
              password (str): Account password
  
          Returns:
              str: Access Token
  
          Raises:
              MatrixRequestError