code: def tearDown(self):
      self.bridge.close()
      gc.collect()
      diff_python = (
          pa.total_allocated_bytes() - self.old_allocated_python
      )
      self.assertEqual(
          pa.total_allocated_bytes(),
          self.old_allocated_python,
          f"PyArrow memory was not adequately released: {diff_python} bytes lost",
      )
  
imports: import decimal
  import gc
  import os
  import sys
  import unittest
  import xml.etree.ElementTree
  import jpype
  import pyarrow
  import pyarrow.ipc
  from pyarrow.cffi import ffi
label_desc: Use image node_id 3 for calling the TestPythonIntegration obj's underlying member method code with example usage: obj.tearDown() without return types