def METHOD_NAME(file_path: Text) -> bool:
    """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`.
    """
    file_name = os.path.basename(file_path)
    return file_name in ["config.yml", "config.yaml"]