code: def test_geocoding_request():
      foo = _query(request="foo")
      bar = _query(
          request="bar",
          scope=MapRegion.with_name("baz"),
          ambiguity_resolver=AmbiguityResolver(
              ignoring_strategy=IgnoringStrategyKind.skip_all
          ),
      )
  
      request: GeocodingRequest = (
          RequestBuilder()
          .set_request_kind(RequestKind.geocoding)
          .set_requested_payload(
              [PayloadKind.boundaries, PayloadKind.centroids]
          )
          .set_resolution(123)
          .set_level(LevelKind.city)
          .set_namesake_limit(10)
          .set_queries([foo, bar])
          .build()
      )
  
      json = RequestFormatter().format(request).to_dict()
  
      parsed_request = RequestParser().parse(json)
  
      assert isinstance(parsed_request, GeocodingRequest)
      assert (
          request.requested_payload == parsed_request.requested_payload
      )
      assert request.resolution == parsed_request.resolution
  
      assert request.level == parsed_request.level
      assert (
          request.namesake_example_limit
          == parsed_request.namesake_example_limit
      )
      assert 2 == len(parsed_request.region_queries)
      assert_region_query(foo, parsed_request.region_queries[0])
      assert_region_query(bar, parsed_request.region_queries[1])
  
file_path: lets-plot/python-package/test/geo_data/gis/test_request_formatter.py
imports: from typing import Optional
  from assertions import assert_region_query
  from lets_plot.geo_data.gis.geometry import GeoRect, GeoPoint
  from lets_plot.geo_data.gis.json_request import RequestFormatter, RequestParser
  from lets_plot.geo_data.gis.request import RequestBuilder, ExplicitRequest, RequestKind, GeocodingRequest, RegionQuery, MapRegion, PayloadKind, AmbiguityResolver, IgnoringStrategyKind, ReverseGeocodingRequest
  from lets_plot.geo_data.gis.response import LevelKind
label_desc: Use image node_id 3 for calling a global function with example usage: test_geocoding_request() without return types