code: def test_write_image_string_no_extension_failure(fig1):
      # No extension
      file_path = os.path.join(tmp_dir, "fig1")
  
      # Use file extension to infer image type.
      with pytest.raises(ValueError) as err:
          pio.write_image(fig1, file_path, engine="orca")
  
      assert "add a file extension or specify the type" in str(
          err.value
      )
  
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 12 for calling a global function with example usage: test_write_image_string_no_extension_failure(fig1) without return types