code: def test_custom_get_template_kwarg(app_context: AppContext) -> None:
      """Test macro passed as kwargs when getting template processor
      works in custom template processor."""
      db = mock.Mock()
      db.backend = "db_for_macros_testing"
      template = "$foo()"
      tp = get_template_processor(database=db, foo=lambda: "bar")
      assert tp.process_template(template) == "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 16 for calling a global function with example usage: test_custom_get_template_kwarg(app_context) without return types