code: def _get_jconfig(config=None):
      configkeys = (
          "staticPlot",
          "plotlyServerURL",
          "editable",
          "edits",
          "autosizable",
          "responsive",
          "queueLength",
          "fillFrame",
          "frameMargins",
          "scrollZoom",
          "doubleClick",
          "showTips",
          "showAxisDragHandles",
          "showAxisRangeEntryBoxes",
          "showLink",
          "sendData",
          "showSendToCloud",
          "linkText",
          "showSources",
          "displayModeBar",
          "modeBarButtonsToRemove",
          "modeBarButtonsToAdd",
          "modeBarButtons",
          "toImageButtonOptions",
          "displaylogo",
          "watermark",
          "plotGlPixelRatio",
          "setBackground",
          "topojsonURL",
          "mapboxAccessToken",
          "logging",
          "globalTransforms",
          "locale",
          "locales",
          "doubleClickDelay",
      )
  
      if config and isinstance(config, dict):
          # Warn user on unrecognized config options.  We make this a warning
          # rather than an error since we don't have code generation logic in
          # place yet to guarantee that the config options in plotly.py are up
          # to date
          bad_config = [k for k in config if k not in configkeys]
          if bad_config:
              warnings.warn(
                  """
  Unrecognized config options supplied: {bad_config}""".format(
                      bad_config=bad_config
                  )
              )
  
          clean_config = config
      else:
          clean_config = {}
  
      plotly_platform_url = tools.get_config_plotly_server_url()
  
      if not clean_config.get("plotlyServerURL", None):
          clean_config["plotlyServerURL"] = plotly_platform_url
  
      if (
          plotly_platform_url != "https://plot.ly"
          and clean_config.get("linkText", None) == "Export to plot.ly"
      ):
          link_domain = plotly_platform_url.replace(
              "https://", ""
          ).replace("http://", "")
          link_text = clean_config["linkText"].replace(
              "plot.ly", link_domain
          )
          clean_config["linkText"] = link_text
  
      return clean_config
  
file_path: catboost/contrib/python/plotly/py3/plotly/offline/offline.py
imports: import os
  import warnings
  import pkgutil
  from plotly.optional_imports import get_module
  from plotly import tools
  from ._plotlyjs_version import __plotlyjs_version__
label_desc: Use image node_id 6 for calling a global function with example usage: _get_jconfig(config) and returns: clean_config