code: def test_private_plot_response_with_and_without_share_key(self):
      # The json file of the private plot should be 404 and once
      # share_key is added it should be 200
  
      kwargs = {
          "filename": "is_share_key_included2",
          "world_readable": False,
          "auto_open": False,
          "sharing": "private",
      }
  
      private_plot_url = py.plot(self.simple_figure, **kwargs)
      private_plot_response = requests.get(private_plot_url + ".json")
  
      # The json file of the private plot should be 404
      self.assertEqual(private_plot_response.status_code, 404)
  
      secret_plot_url = py.add_share_key_to_url(private_plot_url)
      urlsplit = urllib.parse.urlparse(secret_plot_url)
      secret_plot_json_file = urllib.parse.urljoin(
          urlsplit.geturl(), "?.json" + urlsplit.query
      )
      secret_plot_response = requests.get(secret_plot_json_file)
  
      # The json file of the secret plot should be 200
      self.assertTrue(secret_plot_response.status_code, 200)
  
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 14 for calling the TestPlot obj's underlying member method code with example usage: obj.test_private_plot_response_with_and_without_share_key() without return types