def get_discovery(self, **params):
        """Attempts to discover IMAP settings for a given email address.

        2.0
        Documentation: http://context.io/docs/2.0/discovery

        Lite
        Documentation: http://context.io/lite.0/discovery

        Required Arguments:
            source_type: string - The type of source you want to discover
                settings for. Right now, the only supported source type is IMAP
            email: string - An email address you want to discover IMAP
                settings for. Make sure source_type is set to IMAP.

        Returns:
            A Discovery object.
        """
        if 'source_type' not in params:
            params['source_type'] = 'IMAP'

        all_args = req_args = ['source_type', 'email']

        params = helpers.sanitize_params(params, all_args, req_args)

        return Discovery(self, self._request_uri('discovery', params=params))
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py/Api.get_discovery/original