code: def copy_tree(src, dst):
      try:
          shutil.copytree(src, dst)
      except OSError as exc:  # python >2.5
          if exc.errno in (errno.ENOTDIR, errno.EINVAL):
              shutil.copy(src, dst)
          else:
              raise
  
file_path: h2ogpt/win_run_app.py
imports: import os
  import sys
  import time
  import traceback
  import webbrowser
  import shutil, errno
  from importlib.metadata import distribution, PackageNotFoundError
label_desc: Use image node_id 1 for calling a global function with example usage: copy_tree(src, dst) without return types