code: def replace_file(src, dst):
      if library.python.windows.on_win():
          library.python.windows.replace_file(src, dst)
      else:
          os.rename(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 4 for calling a global function with example usage: replace_file(src, dst) without return types