def METHOD_NAME(self, mock_log):
    logger = DBEventLogger()
    @logger.log_this_with_extra_payload
    def test_func(arg1, add_extra_log_payload, karg1=1):
        time.sleep(0.1)
        add_extra_log_payload(foo="bar")
        return arg1 * karg1
    with app.test_request_context():
        result = test_func(1, karg1=2)  # pylint: disable=no-value-for-parameter
        payload = mock_log.call_args[1]
        self.assertEqual(result, 2)
        self.assertEqual(
            payload["records"],
            [
                {
                    "foo": "bar",
                    "path": "/",
                    "karg1": 2,
                    "object_ref": test_func.__qualname__,
                }
            ],
        )
        self.assertGreaterEqual(payload["duration_ms"], 100)