code: def test_json_renderer_show(fig1):
      pio.renderers.default = "json"
      expected_bundle = {
          "application/json": json.loads(
              pio.to_json(fig1, remove_uids=False)
          )
      }
  
      with mock.patch("IPython.display.display") as mock_display:
          pio.show(fig1)
  
      mock_display.assert_called_once_with(expected_bundle, raw=True)
  
imports: import json
  import sys
  import base64
  import threading
  import time
  import pytest
  import requests
  import numpy
  import webbrowser
  import plotly.graph_objs
  import plotly.io
  from plotly.offline import get_plotlyjs
  from plotly.io._utils import plotly_cdn_url
label_desc: Use image node_id 3 for calling a global function with example usage: test_json_renderer_show(fig1) without return types