def is_nlu_file(file_path: Text) -> bool:
    "Checks if a file is a Rasa compatible nlu file.\n\n    Args:\n        file_path: Path of the file which should be checked.\n\n    Returns:\n        `True` if it's a nlu file, otherwise `False`.\n    "
    return (loading.guess_format(file_path) != loading.UNK)
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`.
def is_nlu_file(file_path: Text) -> bool:
    "Checks if a file is a Rasa compatible nlu file.\n\n    Args:\n        file_path: Path of the file which should be checked.\n\n    Returns:\n        `True` if it's a nlu file, otherwise `False`.\n    "
    return (loading.guess_format(file_path) != loading.UNK)