code: def _cleanup():
      wandb.finish()
      if os.path.isdir("wandb"):
          shutil.rmtree("wandb")
      if os.path.isdir("artifacts"):
          shutil.rmtree("artifacts")
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_misc.py
imports: import os
  import shutil
  import time
  import numpy
  import pytest
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: _cleanup() without return types