code: def test_to_dataframe(self):
      df = Geocodes(
          level_kind=LevelKind.city,
          queries=[
              RegionQuery(request="FOO"),
              RegionQuery(request="BAR"),
          ],
          answers=features_to_answers(
              [self.foo.build_geocoded(), self.bar.build_geocoded()]
          ),
      ).to_data_frame()
  
      assert_row(df, names=["FOO", "BAR"])
  
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 6 for calling the TestMapRegions obj's underlying member method code with example usage: obj.test_to_dataframe() without return types