def create_proxy(self):
        """To create proxy.

        Raises:
            CofenseIntelligenceException: custom cofense exception

        Returns:
            dict: proxies
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            proxies = None
            if consts.IS_PROXY_REQUIRED == "Yes":
                if consts.PROXY_URL and consts.PROXY_PORT:
                    if consts.PROXY_USERNAME and consts.PROXY_PASSWORD:
                        proxy_url = "{}://{}:{}@{}:{}".format(
                            consts.PROXY_REQUEST,
                            quote_plus(consts.PROXY_USERNAME),
                            quote_plus(consts.PROXY_PASSWORD),
                            consts.PROXY_URL,
                            consts.PROXY_PORT,
                        )
                        proxies = {"http": proxy_url, "https": proxy_url}
                        applogger.info(
                            "{}(method={}) : {} : Proxy created successfully and the integration"
                            " uses proxy for further execution.".format(
                                consts.LOGS_STARTS_WITH,
                                __method_name,
                                consts.COFENSE_TO_SENTINEL,
                            )
                        )
                    elif consts.PROXY_USERNAME or consts.PROXY_PASSWORD:
                        applogger.error(
                            "{}(method={}) : {} : Proxy username or password is missing.".format(
                                consts.LOGS_STARTS_WITH,
                                __method_name,
                                self.azure_function_name,
                            )
                        )
                        raise CofenseIntelligenceException()
                    else:
                        proxy_url = "{}://{}:{}".format(
                            consts.PROXY_REQUEST,
                            consts.PROXY_URL,
                            consts.PROXY_PORT,
                        )
                        proxies = {"http": proxy_url, "https": proxy_url}
                        applogger.info(
                            "{}(method={}) : {} : Proxy created successfully and the integration"
                            " uses proxy for further execution.".format(
                                consts.LOGS_STARTS_WITH,
                                __method_name,
                                consts.COFENSE_TO_SENTINEL,
                            )
                        )
                else:
                    applogger.error(
                        "{}(method={}) : {} : Proxy Url or Port is missing.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            self.azure_function_name,
                        )
                    )
                    raise CofenseIntelligenceException()
            else:
                applogger.info(
                    "{}(method={}) : {} : Proxy not required. Execution gets started without using proxy.".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        consts.COFENSE_TO_SENTINEL,
                    )
                )
            return proxies
        except CofenseIntelligenceException:
            raise CofenseIntelligenceException()
        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : Error while creating proxy :{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
To create proxy.

        Raises:
            CofenseIntelligenceException: custom cofense exception

        Returns:
            dict: proxies
        
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SharedCode/utils.py