code: def copyfiles(filelist, dest, copy=False, create_new=False):
      """Copy or symlink files in ``filelist`` to ``dest`` directory.
  
      Parameters
      ----------
      filelist : list
          List of files to copy.
      dest : path/files
          full path to destination. If it is a list of length greater
          than 1, then it assumes that these are the names of the new
          files.
      copy : Bool
          specifies whether to copy or symlink files
          (default=False) but only for posix systems
  
      Returns
      -------
      None
  
      """
      outfiles = ensure_list(dest)
      newfiles = []
      for i, f in enumerate(ensure_list(filelist)):
          if isinstance(f, list):
              newfiles.insert(
                  i,
                  copyfiles(f, dest, copy=copy, create_new=create_new),
              )
          else:
              if len(outfiles) > 1:
                  destfile = outfiles[i]
              else:
                  destfile = fname_presuffix(f, newpath=outfiles[0])
              destfile = copyfile(
                  f, destfile, copy, create_new=create_new
              )
              newfiles.insert(i, destfile)
      return newfiles
  
imports: import sys
  import pickle
  import errno
  import subprocess
  import gzip
  import hashlib
  import locale
  from hashlib import md5
  import os
  import os.path
  import re
  import shutil
  import contextlib
  import posixpath
  from pathlib import Path
  import simplejson
  from time import sleep, time
  from ..None import logging, config, __version__
  from .misc import is_container
label_desc: Use image node_id 13 for calling a global function with example usage: copyfiles(filelist, dest, copy, create_new) and returns: newfiles