code: def test_regions(mock_geocoding):
      try:
          geocode(level=LEVEL, names=FILTER_LIST).scope(
              REGION_NAME
          ).get_geocodes()
      except Exception:
          pass  # response doesn't contain proper feature with ids - ignore
  
      mock_geocoding.assert_called_with(
          GeocodingRequest(
              requested_payload=[
                  PayloadKind.limits,
                  PayloadKind.poisitions,
                  PayloadKind.centroids,
              ],
              resolution=None,
              region_queries=[REGION_QUERY_LA, REGION_QUERY_NY],
              level=LEVEL_KIND,
              scope=[MapRegion.with_name(REGION_NAME)],
              namesake_example_limit=NAMESAKES_EXAMPLE_LIMIT,
              allow_ambiguous=False,
          )
      )
  
imports: from unittest import mock
  import pytest
  from pandas import DataFrame
  from lets_plot.geo_data import geocode
  from lets_plot.geo_data.geocoder import _to_scope
  from lets_plot.geo_data.geocodes import _ensure_is_list, Geocodes, DF_COLUMN_ID, DF_COLUMN_FOUND_NAME, DF_COLUMN_CENTROID, DF_COLUMN_POSITION, DF_COLUMN_LIMIT
  from lets_plot.geo_data.gis.geocoding_service import GeocodingService
  from lets_plot.geo_data.gis.request import MapRegion, RegionQuery, GeocodingRequest, PayloadKind, ExplicitRequest, AmbiguityResolver
  from lets_plot.geo_data.gis.response import LevelKind, FeatureBuilder, GeoPoint, Answer
  from lets_plot.geo_data.livemap_helper import _prepare_location, RegionKind, _prepare_parent, LOCATION_LIST_ERROR_MESSAGE, LOCATION_DATAFRAME_ERROR_MESSAGE
  from geo_data_test_util import make_geocode_region, make_success_response, features_to_answers, features_to_queries, COLUMN_NAME_CITY
label_desc: Use image node_id 3 for calling a global function with example usage: test_regions(mock_geocoding) without return types