code: def set_credentials(self, username, password):
          
          if username is not None:
              self._username = username
  
          if password is not None:
              self._password = password
docs: Set a new username and password.
  
          :param str username: New username.
          :param str password: New password.