code: def set_config_file(
      plotly_domain=None,
      plotly_streaming_domain=None,
      plotly_api_domain=None,
      plotly_ssl_verification=None,
      plotly_proxy_authorization=None,
      world_readable=None,
      sharing=None,
      auto_open=None,
  ):
      """Set the keyword-value pairs in `~/.plotly/.config`.
  
      :param (str) plotly_domain: ex - https://plotly.com
      :param (str) plotly_streaming_domain: ex - stream.plotly.com
      :param (str) plotly_api_domain: ex - https://api.plotly.com
      :param (bool) plotly_ssl_verification: True = verify, False = don't verify
      :param (bool) plotly_proxy_authorization: True = use plotly proxy auth creds
      :param (bool) world_readable: True = public, False = private
  
      """
      if not ensure_writable_plotly_dir():
          raise _plotly_utils.exceptions.PlotlyError(
              "You don't have proper file permissions "
              "to run this function."
          )
      ensure_local_plotly_files()  # make sure what's there is OK
      utils.validate_world_readable_and_sharing_settings(
          {"sharing": sharing, "world_readable": world_readable}
      )
  
      settings = get_config_file()
      if isinstance(plotly_domain, str):
          settings["plotly_domain"] = plotly_domain
      elif plotly_domain is not None:
          raise TypeError("plotly_domain should be a string")
      if isinstance(plotly_streaming_domain, str):
          settings["plotly_streaming_domain"] = plotly_streaming_domain
      elif plotly_streaming_domain is not None:
          raise TypeError("plotly_streaming_domain should be a string")
      if isinstance(plotly_api_domain, str):
          settings["plotly_api_domain"] = plotly_api_domain
      elif plotly_api_domain is not None:
          raise TypeError("plotly_api_domain should be a string")
      if isinstance(plotly_ssl_verification, (str, bool)):
          settings["plotly_ssl_verification"] = plotly_ssl_verification
      elif plotly_ssl_verification is not None:
          raise TypeError("plotly_ssl_verification should be a boolean")
      if isinstance(plotly_proxy_authorization, (str, bool)):
          settings[
              "plotly_proxy_authorization"
          ] = plotly_proxy_authorization
      elif plotly_proxy_authorization is not None:
          raise TypeError(
              "plotly_proxy_authorization should be a boolean"
          )
      if isinstance(auto_open, bool):
          settings["auto_open"] = auto_open
      elif auto_open is not None:
          raise TypeError("auto_open should be a boolean")
  
      # validate plotly_domain and plotly_api_domain
      utils.validate_plotly_domains(
          {
              "plotly_domain": plotly_domain,
              "plotly_api_domain": plotly_api_domain,
          }
      )
  
      if isinstance(world_readable, bool):
          settings["world_readable"] = world_readable
          settings.pop("sharing")
      elif world_readable is not None:
          raise TypeError("Input should be a boolean")
      if isinstance(sharing, str):
          settings["sharing"] = sharing
      elif sharing is not None:
          raise TypeError("sharing should be a string")
      utils.set_sharing_and_world_readable(settings)
  
      utils.save_json_dict(CONFIG_FILE, settings)
      ensure_local_plotly_files()
  
imports: from __future__ import absolute_import
  import urllib
  import warnings
  import copy
  from _plotly_utils import optional_imports
  import _plotly_utils.exceptions
  from _plotly_utils.files import ensure_writable_plotly_dir
  from chart_studio import session, utils
  from chart_studio.files import CONFIG_FILE, CREDENTIALS_FILE, FILE_CONTENT
label_desc: Use image node_id 6 for calling a global function with example usage: set_config_file(plotly_domain, plotly_streaming_domain, plotly_api_domain, plotly_ssl_verification, plotly_proxy_authorization, world_readable, sharing, auto_open) without return types