code: def delete_file_path(path):
      try:
          if os.path.isfile(path):
              os.remove(path)
          if os.path.isdir(path):
              shutil.rmtree(path)
      except OSError:
          pass
  
imports: import errno
  import json
  import os
  import platform
  import shutil
  import tempfile
  import time
  from argparse import Namespace
  from datetime import datetime
  from pathlib import Path
  import model_archiver
label_desc: Use image node_id 2 for calling a global function with example usage: delete_file_path(path) without return types