code: def test_ambiguous_response():
      foo = (
          FeatureBuilder()
          .set_query("foo")
          .set_total_namesake_count(150)
          .set_namesake_examples(
              FluentList()
              .add(
                  Namesake(
                      "foo-namesake",
                      FluentList()
                      .add(
                          NamesakeParent(
                              "foo-ns-parent", LevelKind.city
                          )
                      )
                      .list(),
                  )
              )
              .add(
                  Namesake(
                      "foo-namenamesake",
                      FluentList()
                      .add(
                          NamesakeParent(
                              "foo-nns-parent", LevelKind.state
                          )
                      )
                      .add(
                          NamesakeParent(
                              "foo--nns-parent", LevelKind.county
                          )
                      )
                      .list(),
                  )
              )
              .list()
          )
          .build_ambiguous()
      )
  
      foofoo = (
          FeatureBuilder()
          .set_query("foofoo")
          .set_total_namesake_count(13)
          .set_namesake_examples([])
          .build_ambiguous()
      )
  
      response_dict = ResponseFormatter.format(
          ResponseBuilder()
          .set_status(Status.ambiguous)
          .set_message("amb")
          .set_level(LevelKind.city)
          .set_ambiguous_features([foo, foofoo])
          .build()
      )
  
      response = ResponseParser.parse(response_dict)
  
      assert isinstance(response, AmbiguousResponse)
      assert "amb" == response.message
      assert 2 == len(response.features)
      assert_ambiguous(foo, response.features[0])
      assert_ambiguous(foofoo, response.features[1])
  
file_path: lets-plot/python-package/test/geo_data/gis/test_response_parser.py
imports: from assertions import assert_geocoded, assert_ambiguous
  from lets_plot.geo_data.gis.fluent_dict import FluentDict, FluentList
  from lets_plot.geo_data.gis.geometry import GeoPoint, GeoRect, Ring, Polygon
  from lets_plot.geo_data.gis.json_response import ResponseParser, ResponseField, ResponseFormatter
  from lets_plot.geo_data.gis.response import Status, ErrorResponse, LevelKind, ResponseBuilder, FeatureBuilder, SuccessResponse, Namesake, NamesakeParent, AmbiguousResponse
label_desc: Use image node_id 3 for calling a global function with example usage: test_ambiguous_response() without return types