code: def test_algorithm_supports_corner_mask(algorithm):
      z = np.array([[1.0, 2.0], [3.0, 4.0]])
  
      # All algorithms support corner_mask=False
      plt.contourf(z, algorithm=algorithm, corner_mask=False)
  
      # Only some algorithms support corner_mask=True
      if algorithm != "mpl2005":
          plt.contourf(z, algorithm=algorithm, corner_mask=True)
      else:
          with pytest.raises(ValueError):
              plt.contourf(z, algorithm=algorithm, corner_mask=True)
  
imports: import datetime
  import platform
  import re
  from unittest import mock
  import contourpy
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_almost_equal_nulp, assert_array_equal
  import matplotlib
  from matplotlib import pyplot, rc_context, ticker
  from matplotlib.colors import LogNorm, same_color
  import matplotlib.patches
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import pytest
label_desc: Use image node_id 37 for calling a global function with example usage: test_algorithm_supports_corner_mask(algorithm) without return types