code: def get_nlu_directory(
      paths: Optional[Union[Text, List[Text]]]
  ) -> Text:
      """Recursively collects all NLU training files from a list of paths.
  
      Args:
          paths: List of paths to training files or folders containing them.
  
      Returns:
          Path to temporary directory containing all found NLU training files.
      """
      nlu_files = get_data_files(paths, is_nlu_file)
      return _copy_files_to_new_dir(nlu_files)
  
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 5 for calling a global function with example usage: get_nlu_directory(paths) and returns: _copy_files_to_new_dir