code: def remove_experiment_folder(experiment_path):
      """Check folder if there is a checkpoint, otherwise remove the folder"""
  
      checkpoint_files = glob.glob(experiment_path + "/*.pth.tar")
      if not checkpoint_files:
          if os.path.exists(experiment_path):
              shutil.rmtree(experiment_path, ignore_errors=True)
              print(" ! Run is removed from {}".format(experiment_path))
      else:
          print(" ! Run is kept in {}".format(experiment_path))
  
imports: import datetime
  import glob
  import os
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: remove_experiment_folder(experiment_path) without return types