code: def test_custom_process_template(
      app_context: AppContext, mocker: MockFixture
  ) -> None:
      """Test macro defined in custom template processor works."""
  
      mock_dt = mocker.patch(
          "tests.integration_tests.superset_test_custom_template_processors.datetime"
      )
      mock_dt.utcnow = mock.Mock(return_value=datetime(1970, 1, 1))
      db = mock.Mock()
      db.backend = "db_for_macros_testing"
      tp = get_template_processor(database=db)
  
      template = "SELECT '$DATE()'"
      assert tp.process_template(template) == f"SELECT '1970-01-01'"
  
      template = "SELECT '$DATE(1, 2)'"
      assert tp.process_template(template) == "SELECT '1970-01-02'"
  
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 15 for calling a global function with example usage: test_custom_process_template(app_context, mocker) without return types