code: def test_template_kwarg_lambda(app_context: AppContext) -> None:
      maindb = superset.utils.database.get_example_database()
      template = "{{ foo() }}"
      tp = get_template_processor(database=maindb)
      with pytest.raises(SupersetTemplateException):
          tp.process_template(template, foo=lambda: "bar")
  
imports: from datetime import datetime
  from unittest import mock
  import pytest
  from flask.ctx import AppContext
  from pytest_mock import MockFixture
  import superset.utils.database
  from superset.exceptions import SupersetTemplateException
  from superset.jinja_context import get_template_processor
label_desc: Use image node_id 7 for calling a global function with example usage: test_template_kwarg_lambda(app_context) without return types