code: def _load_baseline_image(filename, fmt):
      import json
  
      if fmt == "json":
          with open(filename, "rt") as handle:
              image = json.load(handle)
          return image
  
      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 2 for calling a global function with example usage: _load_baseline_image(filename, fmt) and returns: image