code: def assert_error(message: str, action: Callable[[], Any]):
      assert isinstance(message, str)
      try:
          action()
          assert False, "No error, but expected: {}".format(message)
      except Exception as e:
          assert message == str(e), "'{}' != '{}'".format(
              message, str(e)
          )
  
imports: import json
  from typing import List, Union, Callable, Any
  import shapely
  from geopandas import GeoDataFrame
  from shapely.geometry import Point
  from lets_plot.geo_data import DF_COLUMN_ID, DF_COLUMN_FOUND_NAME, DF_COLUMN_COUNTY, DF_COLUMN_STATE, DF_COLUMN_COUNTRY
  from lets_plot.geo_data.geocodes import Geocodes
  from lets_plot.geo_data.gis.geometry import Ring, Polygon, Multipolygon
  from lets_plot.geo_data.gis.json_response import ResponseField, GeometryKind
  from lets_plot.geo_data.gis.request import RegionQuery
  from lets_plot.geo_data.gis.response import Answer, GeocodedFeature, FeatureBuilder, LevelKind, Status, GeoRect, GeoPoint, Response, SuccessResponse, AmbiguousResponse, ErrorResponse, ResponseBuilder
label_desc: Use image node_id 2 for calling a global function with example usage: assert_error(message, action) without return types