code: def ensure_not_exists(path):
      if not exists(path):
          return
      if isfile(path):
          os.unlink(path)
      else:
          rmtree(path)
  
file_path: catalyst/docs/deploy.py
imports: from __future__ import print_function
  from contextlib import contextmanager
  from glob import glob
  import os
  from os.path import abspath, basename, dirname, exists, isfile
  from shutil import move, rmtree
  from subprocess import check_call
label_desc: Use image node_id 2 for calling a global function with example usage: ensure_not_exists(path) without return types