code: def show(fig, renderer=None, validate=True, **kwargs):
      """
      Show a figure using either the default renderer(s) or the renderer(s)
      specified by the renderer argument
  
      Parameters
      ----------
      fig: dict of Figure
          The Figure object or figure dict to display
  
      renderer: str or None (default None)
          A string containing the names of one or more registered renderers
          (separated by '+' characters) or None.  If None, then the default
          renderers specified in plotly.io.renderers.default are used.
  
      validate: bool (default True)
          True if the figure should be validated before being shown,
          False otherwise.
  
      width: int or float
          An integer or float that determines the number of pixels wide the
          plot is. The default is set in plotly.js.
  
      height: int or float
          An integer or float that determines the number of pixels wide the
          plot is. The default is set in plotly.js.
  
      config: dict
          A dict of parameters to configure the figure. The defaults are set
          in plotly.js.
  
      Returns
      -------
      None
      """
      fig_dict = validate_coerce_fig_to_dict(fig, validate)
  
      # Mimetype renderers
      bundle = renderers._build_mime_bundle(
          fig_dict, renderers_string=renderer, **kwargs
      )
      if bundle:
          if not ipython_display:
              raise ValueError(
                  "Mime type rendering requires ipython but it is not installed"
              )
  
          if not nbformat or Version(nbformat.__version__) < Version(
              "4.2.0"
          ):
              raise ValueError(
                  "Mime type rendering requires nbformat>=4.2.0 but it is not installed"
              )
  
          ipython_display.display(bundle, raw=True)
  
      # external renderers
      renderers._perform_external_rendering(
          fig_dict, renderers_string=renderer, **kwargs
      )
  
imports: import textwrap
  from copy import copy
  import os
  from packaging.version import Version
  from plotly import optional_imports
  from plotly.io._base_renderers import MimetypeRenderer, ExternalRenderer, PlotlyRenderer, NotebookRenderer, KaggleRenderer, AzureRenderer, ColabRenderer, JsonRenderer, PngRenderer, JpegRenderer, SvgRenderer, PdfRenderer, BrowserRenderer, IFrameRenderer, SphinxGalleryHtmlRenderer, SphinxGalleryOrcaRenderer, CoCalcRenderer, DatabricksRenderer
  from plotly.io._utils import validate_coerce_fig_to_dict
label_desc: Use image node_id 1 for calling a global function with example usage: show(fig, renderer, validate) without return types