code: def test_exploding_answers_to_data_frame_take_request_from_feature_name(
      self, mock_request
  ):
      foo_id = "123"
      foo_name = "foo"
  
      bar_id = "456"
      bar_name = "bar"
      geocoding_result = Geocodes(
          level_kind=LevelKind.city,
          queries=[RegionQuery(request=None)],
          answers=[
              Answer(
                  [
                      FeatureBuilder()
                      .set_id(foo_id)
                      .set_name(foo_name)
                      .build_geocoded(),
                      FeatureBuilder()
                      .set_id(bar_id)
                      .set_name(bar_name)
                      .build_geocoded(),
                  ]
              )
          ],
      )
  
      mock_request.return_value = (
          make_success_response()
          .set_geocoded_features(
              [
                  FeatureBuilder()
                  .set_id(foo_id)
                  .set_query(foo_id)
                  .set_name(foo_name)
                  .set_centroid(GeoPoint(0, 1))
                  .build_geocoded(),
                  FeatureBuilder()
                  .set_id(bar_id)
                  .set_query(bar_id)
                  .set_name(bar_name)
                  .set_centroid(GeoPoint(2, 3))
                  .build_geocoded(),
              ]
          )
          .build()
      )
  
      df = geocoding_result.centroids()
  
      mock_request.assert_called_with(
          RequestBuilder()
          .set_request_kind(RequestKind.explicit)
          .set_ids([foo_id, bar_id])
          .set_requested_payload([PayloadKind.centroids])
          .build()
      )
  
      assert_request_and_found_name_are_equal(df)
  
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 8 for calling the TestMapRegions obj's underlying member method code with example usage: obj.test_exploding_answers_to_data_frame_take_request_from_feature_name(mock_request) without return types