code: def copy_tree(src, dst, copy_function=shutil.copy2):
      if os.path.isfile(src):
          copy_file(src, dst, copy_function=copy_function)
          return
      copytree3(src, dst, copy_function=copy_function)
  
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 18 for calling a global function with example usage: copy_tree(src, dst, copy_function) without return types