def METHOD_NAME(self):
    # This tests:
    #  1. exception is None
    #  2. stacktrace is None
    #  3. frames is None
    #  3. frames contains only None
    #  4. frame is None
    data: dict[str, Any] = {
        "message": "hello",
        "platform": "javascript",
        "exception": {
            "values": [
                None,
                {"type": "Error", "stacktrace": None},
                {"type": "Error", "stacktrace": {"frames": None}},
                {"type": "Error", "stacktrace": {"frames": [None]}},
                {
                    "type": "Error",
                    "stacktrace": {
                        "frames": [
                            None,
                            {
                                "abs_path": "http://example.com/foo.js",
                                "filename": "foo.js",
                                "lineno": 4,
                                "colno": 0,
                            },
                            {
                                "abs_path": "http://example.com/foo.js",
                                "filename": "foo.js",
                                "lineno": 1,
                                "colno": 0,
                            },
                        ]
                    },
                },
            ]
        },
    }
    infos = find_stacktraces_in_data(data, include_empty_exceptions=True)
    assert len(infos) == 4
    assert sum(1 for x in infos if x.stacktrace) == 3
    assert sum(1 for x in infos if x.is_exception) == 4
    # XXX: The null frame is still part of this stack trace!
    assert len(infos[3].stacktrace["frames"]) == 3
    infos = find_stacktraces_in_data(data)
    assert len(infos) == 1
    # XXX: The null frame is still part of this stack trace!
    assert len(infos[0].stacktrace["frames"]) == 3