code: def test_direct_answers_take_request_from_query(self, mock_request):
      geocoding_result = Geocodes(
          level_kind=LevelKind.city,
          queries=[
              RegionQuery(request="fooo"),
              RegionQuery(request="barr"),
              RegionQuery(request="bazz"),
          ],
          answers=[
              Answer([self.foo.set_query("").build_geocoded()]),
              Answer([self.bar.set_query("").build_geocoded()]),
              Answer([self.baz.set_query("").build_geocoded()]),
          ],
      )
  
      mock_request.return_value = (
          make_success_response()
          .set_geocoded_features(
              [
                  self.foo.set_query(self.bar_id)
                  .set_centroid(GeoPoint(0, 1))
                  .build_geocoded(),
                  self.bar.set_query(self.foo_id)
                  .set_centroid(GeoPoint(0, 1))
                  .build_geocoded(),
                  self.baz.set_query(self.baz_id)
                  .set_centroid(GeoPoint(0, 1))
                  .build_geocoded(),
              ]
          )
          .build()
      )
  
      df = geocoding_result.centroids()
  
      mock_request.assert_called_with(
          RequestBuilder()
          .set_request_kind(RequestKind.explicit)
          .set_ids([self.foo.id, self.bar.id, self.baz.id])
          .set_requested_payload([PayloadKind.centroids])
          .build()
      )
  
      assert_row(df, names=["fooo", "barr", "bazz"])
  
file_path: lets-plot/python-package/test/geo_data/test_map_regions.py
imports: from unittest import mock
  import pytest
  from lets_plot.geo_data.geocoder import Geocoder
  from lets_plot.geo_data.geocodes import _parse_resolution, Geocodes, Resolution
  from lets_plot.geo_data.gis.geocoding_service import GeocodingService
  from lets_plot.geo_data.gis.request import ExplicitRequest, PayloadKind, LevelKind, RequestBuilder, RequestKind, RegionQuery
  from lets_plot.geo_data.gis.response import Answer, FeatureBuilder, GeoPoint, GeoRect
  from geo_data_test_util import make_success_response, features_to_queries, features_to_answers, assert_row, assert_request_and_found_name_are_equal
label_desc: Use image node_id 9 for calling the TestMapRegions obj's underlying member method code with example usage: obj.test_direct_answers_take_request_from_query(mock_request) without return types