code: def test_config_bad_options(self):
      config = dict(bogus=42)
  
      def get_html():
          return self._read_html(
              plotly.offline.plot(
                  fig,
                  config=config,
                  auto_open=False,
                  filename=html_filename,
              )
          )
  
      # Attempts to validate warning ran into
      # https://bugs.python.org/issue29620, don't check warning for now.
      # Revisit when we move to pytest
      html = get_html()
  
      self.assertIn('"bogus": 42', html)
  
imports: import json
  import os
  from unittest import TestCase
  import pytest
  import plotly
  import plotly.io
  from plotly.io._utils import plotly_cdn_url
label_desc: Use image node_id 17 for calling the PlotlyOfflineTestCase obj's underlying member method code with example usage: obj.test_config_bad_options() and returns: self