code: def _resolve_username(self, account, username):
          
          if account is not None:
              warnings.warn(
                  "Use keyword argument 'username' instead of 'account'",
                  DeprecationWarning)
          return username or account or self.username
docs: Resolve username and handle deprecation of account kwarg