code: def replace(src, dst):
      try:
          move(src, dst)
      except OSError as e:
          if e.errno not in (
              errno.EEXIST,
              errno.EISDIR,
              errno.ENOTDIR,
              errno.ENOTEMPTY,
          ):
              raise
          remove_tree(dst)
          move(src, dst)
  
imports: import codecs
  import errno
  import logging
  import os
  import random
  import shutil
  import six
  import stat
  import sys
  import library.python.func
  import library.python.strings
  import library.python.windows
label_desc: Use image node_id 5 for calling a global function with example usage: replace(src, dst) without return types