code: def figure_hook_example(figure):
      figure._test_was_here = True
  
imports: import difflib
  import numpy
  import sys
  from pathlib import Path
  import pytest
  import matplotlib
  from matplotlib.testing import subprocess_run_for_testing
  from matplotlib import pyplot
label_desc: Use image node_id 26 for calling a global function with example usage: figure_hook_example(figure) without return types