def is_cache_artifact(filename: str) -> bool:
    """
    Simple filter function, returns true if the passed filename is considered
    to be a cacheable artifact (not used to build cache key, but stored in cache)
    for the purpose of caching

    Args:
        filename (str): File path as a string

    Returns:
        bool: Whether the filename is a cache artifact
    """
    file_basename, file_ext = filename_norm_split(filename)
    return not is_source(filename) and file_ext in cache_extensions

    Simple filter function, returns true if the passed filename is considered
    to be a cacheable artifact (not used to build cache key, but stored in cache)
    for the purpose of caching

    Args:
        filename (str): File path as a string

    Returns:
        bool: Whether the filename is a cache artifact
    
python/aitemplate/backend/build_cache_base.py