code: def __init__(self):
      self.alloc_preprocess_history = []
      self.alloc_postprocess_history = []
      self.malloc_preprocess_history = []
      self.malloc_postprocess_history = []
      self.free_preprocess_history = []
      self.free_postprocess_history = []
  
file_path: cupy/tests/cupy_tests/cuda_tests/test_memory_hook.py
imports: import unittest
  import cupy.cuda
  from cupy.cuda import memory
  from cupy.cuda import memory_hook
label_desc: Use image node_id 1 to create a new SimpleMemoryHook object from inherited base classes: memory_hook with example: obj = SimpleMemoryHook()