code: def _disable_ssl() -> Callable[[], None]:
      # Because third party libraries may also use requests, we monkey patch it globally
      # and turn off urllib3 warnings instead printing a global warning to the user.
      wandb.termwarn(
          "Disabling SSL verification.  Connections to this server are not verified and may be insecure!"
      )
  
      requests.packages.urllib3.disable_warnings(
          category=InsecureRequestWarning
      )
      old_merge_environment_settings = (
          requests.Session.merge_environment_settings
      )
  
      def merge_environment_settings(
          self, url, proxies, stream, verify, cert
      ):
          settings = old_merge_environment_settings(
              self, url, proxies, stream, verify, cert
          )
          settings["verify"] = False
          return settings
  
      requests.Session.merge_environment_settings = (
          merge_environment_settings
      )
  
      def reset():
          requests.Session.merge_environment_settings = (
              old_merge_environment_settings
          )
  
      return reset
  
file_path: wandb/wandb/apis/__init__.py
imports: from typing import Callable
  import requests
  from urllib3.exceptions import InsecureRequestWarning
  import wandb
  from wandb import env, util
  from .internal import Api
  from .public import Api
label_desc: Use image node_id 1 for calling a global function with example usage: _disable_ssl() and returns: reset, settings