def METHOD_NAME(default_project, task_runner):
    def inner(last_frame):
        data = {"timestamp": time.time(), "type": "error"}
        evt = Event(
            default_project.id,
            uuid.uuid4().hex,
            data=data,
        )
        with task_runner():
            return _save_aggregate(
                evt,
                hashes=CalculatedHashes(
                    hashes=["a" * 32, "b" * 32],
                    hierarchical_hashes=["c" * 32, "d" * 32, "e" * 32, last_frame * 32],
                    tree_labels=[
                        [
                            {
                                "function": "foo",
                                "package": "",
                                "is_sentinel": False,
                                "is_prefix": False,
                                "datapath": "",
                            }
                        ],
                        [
                            {
                                "function": "bar",
                                "package": "",
                                "is_sentinel": False,
                                "is_prefix": False,
                                "datapath": "",
                            }
                        ],
                        [
                            {
                                "function": "baz",
                                "package": "",
                                "is_sentinel": False,
                                "is_prefix": False,
                                "datapath": "",
                            }
                        ],
                        [
                            {
                                "function": "bam",
                                "package": "",
                                "is_sentinel": False,
                                "is_prefix": False,
                                "datapath": "",
                            }
                        ],
                    ],
                ),
                release=None,
                metadata={},
                received_timestamp=0,
                level=10,
                culprit="",
            )
    return inner