class_docstr: Generic template for memory leak tests.
code: def function_to_profile(self) -> None:
      raise NotImplementedError
  
imports: import abc
  import json
  import subprocess
  import sys
  import time
  from pathlib import Path
  from typing import Text, List, Tuple, Optional, Union
  import memory_profiler
  import psutil
  import pytest
  import rasa
  import rasa.shared.utils.io
  from rasa.utils.common import TempDirectoryPath, get_temp_dir_name
label_desc: Use image node_id 3 for calling the MemoryLeakTest obj's underlying member method code with example usage: obj.function_to_profile() without return types