code: def test_deprecated_apis():
      cs = plt.contour(np.arange(16).reshape((4, 4)))
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="collections"
      ):
          colls = cs.collections
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="tcolors"
      ):
          assert_array_equal(
              cs.tcolors, [c.get_edgecolor() for c in colls]
          )
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="tlinewidths"
      ):
          assert cs.tlinewidths == [c.get_linewidth() for c in colls]
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="antialiased"
      ):
          assert cs.antialiased
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="antialiased"
      ):
          cs.antialiased = False
      with pytest.warns(
          mpl.MatplotlibDeprecationWarning, match="antialiased"
      ):
          assert not cs.antialiased
  
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 48 for calling a global function with example usage: test_deprecated_apis() without return types