code: def login(self, username, password=None, email=None, registry=None, reauth=False, **kwargs):
          
          response = super(DockerClientWrapper, self).login(username, password, email, registry, reauth=reauth, **kwargs)
          return response.get('Status') == 'Login Succeeded' or response.get('username') == username
docs: Login to a Docker registry server.
  
          :param username: User name for login.
          :type username: unicode | str
          :param password: Login password; may be ``None`` if blank.
          :type password: unicode | str
          :param email: Optional; email address for login.
          :type email: unicode | str
          :param registry: Optional registry URL to log in to. Uses the Docker index by default.
          :type registry: unicode | str
          :param reauth: Re-authenticate, even if the login has been successful before.
          :type reauth: bool
          :param kwargs: Additional kwargs to :meth:`docker.client.Client.login`.
          :return: ``True`` if the login has succeeded, or if it has not been necessary as it succeeded before. ``False``
            otherwise.
          :rtype: bool