code: def is_nlu_file(file_path: Text) -> bool:
      """Checks if a file is a Rasa compatible nlu file.
  
      Args:
          file_path: Path of the file which should be checked.
  
      Returns:
          `True` if it's a nlu file, otherwise `False`.
      """
      from rasa.shared.nlu.training_data import loading as nlu_loading
  
      return nlu_loading.guess_format(file_path) != nlu_loading.UNK
  
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 9 for calling a global function with example usage: is_nlu_file(file_path) and returns: unknown