code: def test_centroids(self, mock_request):
      try:
          self.make_geocoder().get_centroids()
      except ValueError:
          pass  # response doesn't contain proper feature with ids - ignore
  
      mock_request.assert_called_with(
          ExplicitRequest(
              requested_payload=[PayloadKind.centroids],
              ids=[USA_ID, RUSSIA_ID],
          )
      )
  
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 5 for calling the TestMapRegions obj's underlying member method code with example usage: obj.test_centroids(mock_request) without return types