code: def test_simple_to_image(fig1, format):
      img_bytes = pio.to_image(
          fig1, format=format, width=700, height=500, engine="orca"
      )
      assert_image_bytes(img_bytes, "fig1." + format)
  
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 7 for calling a global function with example usage: test_simple_to_image(fig1, format) without return types