code: def test_format_inference_filename():
      with tempfile.NamedTemporaryFile(
          suffix=".svg", delete=False
      ) as f:
          name = f.name
          f.close()  # Allow tests to run on Windows
          img = Image.from_file(name)
  
      assert img.format == "svg+xml"
  
imports: import io
  import os
  from ipywidgets import Image
  import hashlib
  import pkgutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 11 for calling a global function with example usage: test_format_inference_filename() without return types