code: def generate_conflicting_plot_options_in_signin():
      """sign_in overrides the default plot options.
      conflicting options aren't raised until plot or iplot is called,
      through _plot_option_logic
      """
  
      def gen_test(plot_options):
          def test(self):
              py.sign_in("username", "key", **plot_options)
              self.assertRaises(PlotlyError, py._plot_option_logic, {})
  
          return test
  
      for i, plot_options in enumerate(
          TestPlotOptionLogic.conflicting_option_set
      ):
          setattr(
              TestPlotOptionLogic,
              "test_conflicting_plot_options_in_signin_{}".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 1 for calling a global function with example usage: generate_conflicting_plot_options_in_signin() and returns: test