code: def connect(cls, *args, **kwargs):
          
          cls._local.panoptes_client = cls(*args, **kwargs)
          cls._local.panoptes_client.login()
          return cls._local.panoptes_client
docs: connect(username=None, password=None, endpoint=None, admin=False)
  
          Configures the Panoptes client for use.
  
          Note that there is no need to call this unless you need to pass one or
          more of the below arguments.  By default, the client will connect to
          the public Zooniverse.org API as an anonymous user.
  
          All arguments are optional:
  
          - **username** is your Zooniverse.org username.
          - **password** is your Zooniverse.org password.
          - **endpoint** is the HTTP API endpoint you'd like to connect to.
            Defaults to **https://www.zooniverse.org**. Should not include a
            trailing slash.
          - **admin** is a boolean, switching on admin mode if ``True``. Has no
            effect if the given username is not a Zooniverse.org administrator.
  
  
          Examples::
  
              Panoptes.connect(username='example', password='example')
              Panoptes.connect(endpoint='https://panoptes.example.com')