code: def copy2(src, dst, *, follow_symlinks=True):
      """Copy data and metadata. Return the file's destination.
  
      Metadata is copied with copystat(). Please see the copystat function
      for more information.
  
      The destination may be a directory.
  
      If follow_symlinks is false, symlinks won't be followed. This
      resembles GNU's "cp -P src dst".
      """
      if os.path.isdir(dst):
          dst = os.path.join(dst, os.path.basename(src))
      copyfile(src, dst, follow_symlinks=follow_symlinks)
      copystat(src, dst, follow_symlinks=follow_symlinks)
      return dst
  
imports: import os
  import sys
  import stat
  import fnmatch
  import collections
  import errno
label_desc: Use image node_id 12 for calling a global function with example usage: copy2(src, dst) and returns: dst