code: def generate_conflicting_plot_options_in_tools_dot_set_config():
      """tls.set_config overrides the default plot options.
      conflicting options are actually raised when the options are saved,
      because we push out default arguments for folks, and we don't want to
      require users to specify both world_readable and secret *and* we don't
      want to raise an error if they specified only one of these options
      and didn't know that a default option was being saved for them.
      """
  
      def gen_test(plot_options):
          def test(self):
              self.assertRaises(
                  PlotlyError, tls.set_config_file, **plot_options
              )
  
          return test
  
      for i, plot_options in enumerate(
          TestPlotOptionLogic.conflicting_option_set
      ):
          setattr(
              TestPlotOptionLogic,
              "test_conflicting_plot_options_in_"
              "tools_dot_set_config{}".format(i),
              gen_test(plot_options),
          )
  
imports: from __future__ import absolute_import
  import urllib
  import requests
  import sys
  import json
  import warnings
  import chart_studio.tools
  import plotly.tools
  from chart_studio import session
  from chart_studio.tests.utils import PlotlyTestCase
  from chart_studio.plotly import plotly
  from _plotly_utils.exceptions import PlotlyError, PlotlyEmptyDataError
  from chart_studio.files import CONFIG_FILE
label_desc: Use image node_id 2 for calling a global function with example usage: generate_conflicting_plot_options_in_tools_dot_set_config() and returns: test