code: def set_config_file(
      sharing=None,
      theme=None,
      colorscale=None,
      offline=None,
      offline_connected=None,
      offline_url=None,
      offline_show_link=None,
      offline_link_text=None,
      offline_config=None,
      datagen_mode=None,
      **kwargs,
  ):
      """
      Set the keyword-value pairs in `~/.config`.
  
      sharing : string
                      Sets the sharing level permission
                              public - anyone can see this chart
                              private - only you can see this chart
                              secret - only people with the link can see the chart
      theme : string
                      Sets the default theme
                      See cufflinks.getThemes() for available themes
      colorscale : string
                      Sets the default colorscale
                      See cufflinks.scales()
      offline : bool
                      If true then the charts are rendered
                      locally.
      offline_connected : bool
                      If True, the plotly.js library will be loaded
                      from an online CDN. If False, the plotly.js library will be loaded locally
                      from the plotly python package
      offline_show_link : bool
                      If true then the chart will show a link to
                      plot.ly at the bottom right of the chart
      offline_link_text : string
                      Text to display as link at the bottom
                      right of the chart
      offline_config : dict
                      Additional configuration options
                      For the complete list of config options check out:
                      https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js
      datagen_mode : string
                      Mode in which the data is generated
                      by the datagen module
                              stocks : random stock names are used for the index
                              abc : alphabet values are used for the index
      dimensions : tuple
                      Sets the default (width,height) of the chart
      margin : dict or tuple
                      Dictionary (l,r,b,t) or
                      Tuple containing the left,
                      right, bottom and top margins
      """
      if not _file_permissions:
          raise Exception(
              "You don't have proper file permissions "
              "to run this function."
          )
      valid_kwargs = [
          "world_readable",
          "dimensions",
          "margin",
          "offline_config",
      ]
      for key in list(kwargs.keys()):
          if key not in valid_kwargs:
              raise Exception("Invalid keyword : '{0}'".format(key))
      if all(["world_readable" in kwargs, sharing is None]):
          sharing = kwargs["world_readable"]
      if isinstance(sharing, bool):
          if sharing:
              sharing = "public"
          else:
              sharing = "private"
      config = get_config_file()
      if sharing is not None:
          config["sharing"] = sharing
      if theme:
          config["theme"] = theme
      if colorscale:
          config["colorscale"] = colorscale
      if offline_connected is not None:
          config["offline_connected"] = offline_connected
      if offline is not None:
          config["offline"] = offline
          if offline:
              go_offline()
      if datagen_mode:
          config["datagen_mode"] = datagen_mode
      if offline_url:
          config["offline_url"] = offline_url
      if offline_show_link is not None:
          config["offline_show_link"] = offline_show_link
      if offline_link_text:
          config["offline_link_text"] = offline_link_text
      if offline_config:
          config["offline_config"] = offline_config
      for _ in valid_kwargs:
          if _ in kwargs:
              config[_] = kwargs[_]
      save_json_dict(CONFIG_FILE, config)
      ensure_local_files()
  
file_path: cufflinks/cufflinks/auth.py
imports: import os
  import json
  import warnings
  from .offline import go_offline
label_desc: Use image node_id 5 for calling a global function with example usage: set_config_file(sharing, theme, colorscale, offline, offline_connected, offline_url, offline_show_link, offline_link_text, offline_config, datagen_mode) without return types