code: def _copy_files_to_new_dir(files: Iterable[Text]) -> Text:
      directory = tempfile.mkdtemp()
      for f in files:
          # makes sure files do not overwrite each other, hence the prefix
          unique_prefix = uuid.uuid4().hex
          unique_file_name = unique_prefix + "_" + os.path.basename(f)
          shutil.copy2(f, os.path.join(directory, unique_file_name))
  
      return directory
  
imports: import os
  import shutil
  import tempfile
  import uuid
  from enum import Enum
  from pathlib import Path
  from typing import Text, Optional, Union, List, Callable, Set, Iterable
label_desc: Use image node_id 11 for calling a global function with example usage: _copy_files_to_new_dir(files) and returns: directory