class_docstr: Singleton object containing the current renderer configurations
class_docstr_tok: ["Singleton","object","containing","the","current","renderer","configurations"]
docstr: Build a mime bundle dict containing a kev/value pair for each
  MimetypeRenderer specified in either the default renderer string,
  or in the supplied renderers_string argument.
  
  Note that this method skips any renderers that are not subclasses
  of MimetypeRenderer.
  
  Parameters
  ----------
  fig_dict: dict
      Figure dictionary
  renderers_string: str or None (default None)
      Renderer string to process rather than the current default
      renderer string
  
  Returns
  -------
  dict
docstr_tok: ["Build","a","mime","bundle","dict","containing","a","kev\/value","pair","for","each","MimetypeRenderer","specified","in","either","the","default","renderer","string",",","or","in","the","supplied","renderers_string","argument",".","Note","that","this","method","skips","any","renderers","that","are","not","subclasses","of","MimetypeRenderer",".","Parameters","--","--","--","--","--","fig_dict",":","dict","Figure","dictionary","renderers_string",":","str","or","None","(","default","None",")","Renderer","string","to","process","rather","than","the","current","default","renderer","string","Returns","--","--","--","-","dict"]
code: def _build_mime_bundle(
      self, fig_dict, renderers_string=None, **kwargs
  ):
      """
      Build a mime bundle dict containing a kev/value pair for each
      MimetypeRenderer specified in either the default renderer string,
      or in the supplied renderers_string argument.
  
      Note that this method skips any renderers that are not subclasses
      of MimetypeRenderer.
  
      Parameters
      ----------
      fig_dict: dict
          Figure dictionary
      renderers_string: str or None (default None)
          Renderer string to process rather than the current default
          renderer string
  
      Returns
      -------
      dict
      """
      if renderers_string:
          renderer_names = self._validate_coerce_renderers(
              renderers_string
          )
          renderers_list = [self[name] for name in renderer_names]
  
          # Activate these non-default renderers
          for renderer in renderers_list:
              if isinstance(renderer, MimetypeRenderer):
                  renderer.activate()
      else:
          # Activate any pending default renderers
          self._activate_pending_renderers(cls=MimetypeRenderer)
          renderers_list = self._default_renderers
  
      bundle = {}
      for renderer in renderers_list:
          if isinstance(renderer, MimetypeRenderer):
              renderer = copy(renderer)
              for k, v in kwargs.items():
                  if hasattr(renderer, k):
                      setattr(renderer, k, v)
  
              bundle.update(renderer.to_mimebundle(fig_dict))
  
      return bundle
  
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 19 for calling the RenderersConfig obj's underlying member method code with example usage: obj._build_mime_bundle(fig_dict, renderers_string) and returns: bundle