code: def remove_cache(mod):
      if os.path.isfile(mod + "c"):
          os.remove(mod + "c")
      cachedir = os.path.join(os.path.dirname(mod), "__pycache__")
      if os.path.isdir(cachedir):
          shutil.rmtree(cachedir)
  
file_path: pyqtgraph/tests/test_reload.py
imports: import os
  import shutil
  import sys
  import time
  import pytest
  import pyqtgraph
label_desc: Use image node_id 1 for calling a global function with example usage: remove_cache(mod) without return types