def is_domain_file(file_path: Text) -> bool:
    "Checks whether the given file path is a Rasa domain file.\n\n    Args:\n        file_path: Path of the file which should be checked.\n\n    Returns:\n        `True` if it's a domain file, otherwise `False`.\n    "
    file_name = os.path.basename(file_path)
    return (file_name in ['domain.yml', 'domain.yaml'])
Checks whether the given file path is a Rasa domain file.

Args:
    file_path: Path of the file which should be checked.

Returns:
    `True` if it's a domain file, otherwise `False`.
def is_domain_file(file_path: Text) -> bool:
    "Checks whether the given file path is a Rasa domain file.\n\n    Args:\n        file_path: Path of the file which should be checked.\n\n    Returns:\n        `True` if it's a domain file, otherwise `False`.\n    "
    file_name = os.path.basename(file_path)
    return (file_name in ['domain.yml', 'domain.yaml'])