code: def _store_result_image(image, filename, fmt="json"):
      result_folder = Path("result_images") / "plotly"
      result_fn = result_folder / (filename + f".{fmt}")
  
      if fmt == "json":
          return _store_result_image_json(image, result_fn)
  
      raise NotImplementedError(
          f"Image format {fmt} not implemented yet"
      )
  
file_path: python-igraph/tests/drawing/plotly/utils.py
imports: from pathlib import Path
  import sys
  import inspect
  import functools
label_desc: Use image node_id 5 for calling a global function with example usage: _store_result_image(image, filename, fmt) and returns: _store_result_image_json