code: def test_set_current_axes_on_subfigure():
      fig = plt.figure()
      subfigs = fig.subfigures(2)
  
      ax = subfigs[0].subplots(1, squeeze=True)
      subfigs[1].subplots(1, squeeze=True)
  
      assert plt.gca() != ax
      plt.sca(ax)
      assert plt.gca() == ax
  
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 21 for calling a global function with example usage: test_set_current_axes_on_subfigure() without return types