code: def test_write_image_string_bad_extension_override(fig1):
      # Bad extension
      file_name = "fig1.bogus"
      tmp_path = os.path.join(tmp_dir, file_name)
  
      pio.write_image(
          fig1,
          tmp_path,
          format="eps",
          width=700,
          height=500,
          engine="orca",
      )
  
      with open(tmp_path, "rb") as f:
          written_bytes = f.read()
  
      with open(os.path.join(images_dir, "fig1.eps"), "rb") as f:
          expected_bytes = f.read()
  
      assert written_bytes == expected_bytes
  
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 14 for calling a global function with example usage: test_write_image_string_bad_extension_override(fig1) without return types