def METHOD_NAME(file_path: Union[Text, Path]) -> bool:
    """Check if a file likely contains yaml.
    Arguments:
        file_path: path to the file
    Returns:
        `True` if the file likely contains data in yaml format, `False` otherwise.
    """
    return Path(file_path).suffix in set(YAML_FILE_EXTENSIONS)