code: def test_problematic_environment_variables(fig1, format):
      pio.orca.config.restore_defaults(reset_server=True)
  
      os.environ["NODE_OPTIONS"] = "--max-old-space-size=4096"
      os.environ["ELECTRON_RUN_AS_NODE"] = "1"
  
      # Do image export
      img_bytes = pio.to_image(
          fig1, format=format, width=700, height=500, engine="orca"
      )
      assert_image_bytes(img_bytes, "fig1." + format)
  
      # Check that environment variables were restored
      assert os.environ["NODE_OPTIONS"] == "--max-old-space-size=4096"
      assert os.environ["ELECTRON_RUN_AS_NODE"] == "1"
  
imports: import plotly
  import plotly.io
  import plotly.graph_objs
  import os
  import shutil
  import pytest
  import sys
  import pandas
  from io import BytesIO
label_desc: Use image node_id 17 for calling a global function with example usage: test_problematic_environment_variables(fig1, format) without return types