code: def run_fig(fig):
      renderer = PlotlyRenderer()
      exporter = Exporter(renderer)
      print(exporter)
      exporter.run(fig)
      return renderer
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/optional_utils.py
imports: import numpy
  from plotly import optional_imports
  from plotly.tests.utils import is_num_list
  from plotly.utils import get_by_path, node_generator
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: run_fig(fig) and returns: renderer