code: def test_template_context_addons(
      app_context: AppContext, mocker: MockFixture
  ) -> None:
      addons_mock = mocker.patch(
          "superset.jinja_context.context_addons"
      )
      addons_mock.return_value = {"datetime": datetime}
      maindb = superset.utils.database.get_example_database()
      template = "SELECT '{{ datetime(2017, 1, 1).isoformat() }}'"
      tp = get_template_processor(database=maindb)
      assert (
          tp.process_template(template)
          == "SELECT '2017-01-01T00:00:00'"
      )
  
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 14 for calling a global function with example usage: test_template_context_addons(app_context, mocker) without return types