code: def tearDown(self):
      # Clear the global pyplot figure between tests
      plt.clf()
      super().tearDown()
  
file_path: streamlit/lib/tests/streamlit/elements/pyplot_test.py
imports: from typing import Optional
  from unittest.mock import patch
  import matplotlib
  import matplotlib.pyplot
  import numpy
  from parameterized import parameterized
  import streamlit
  from streamlit.elements import image
  from streamlit.web.server.server import MEDIA_ENDPOINT
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 2 for calling the PyplotTest obj's underlying member method code with example usage: obj.tearDown() without return types