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

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

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