code: def test_markup_leaks():
      counts = set()
  
      for _i in range(20):
          for _j in range(1000):
              escape("foo")
              escape("<foo>")
              escape("foo")
              escape("<foo>")
  
          if platform.python_implementation() == "PyPy":
              gc.collect()
  
          counts.add(len(gc.get_objects()))
  
      assert len(counts) == 1
  
imports: import gc
  import platform
  import pytest
  from markupsafe import escape
label_desc: Use image node_id 1 for calling a global function with example usage: test_markup_leaks() without return types