def METHOD_NAME(path):
    """
    Convenience function to get the file queryset associated to a path for unauthenticated
    users. Raises ValueError if the path is not found.
    """
    path_username = path.split('/', 1)[0]
    if path_username == 'PIPELINES':
        return PipelineSourceFile.objects.filter(fname__startswith=path)
    public_feed_user = None
    public_feed_creators = get_shared_feed_creators_set()
    for feed_creator in public_feed_creators:
        if path_username == feed_creator.username:
            public_feed_user = feed_creator
            break
    if public_feed_user is None:
        # path doesn't start with a username that created a public feed
        raise ValueError('Path not found.')
    elif path == public_feed_user.username:
        qs = PluginInstanceFile.objects.none()
    else:
        public_feeds_qs = Feed.objects.filter(
            public=True).filter(owner=public_feed_user)
        public_feed = None
        for feed in public_feeds_qs.all():
            if path.startswith(f'{public_feed_user.username}/feed_{feed.id}'):
                public_feed = feed
                break
        if public_feed is None:
            raise ValueError('Path not found.')
        else:
            qs = PluginInstanceFile.objects.filter(fname__startswith=path)
    return qs