code: def _create_multiple_error_message(
      request: str, namesakes: List[Namesake], total_namesake_count: int
  ):
      lines = []
      for namesake in namesakes:
          line = "- " + namesake.name
          if len(namesake.parents) > 0:
              line += (
                  " ("
                  + ", ".join([o.name for o in namesake.parents])
                  + ")"
              )
          lines.append(line)
  
      text = (
          "Multiple objects ("
          + str(total_namesake_count)
          + ") were found for "
          + request
      )
      if not lines:
          text += "."
      else:
          text += ":\n" + "\n".join(lines)
      return text
  
imports: import enum
  from abc import abstractmethod
  from collections.abc import Iterable
  from typing import List, Optional, Union, Dict
  from pandas import DataFrame, Series
  from lets_plot.geo_data_internals.constants import DF_COLUMN_HIGHLIGHTS, DF_COLUMN_COUNTRY, DF_COLUMN_STATE, DF_COLUMN_COUNTY, DF_COLUMN_CITY, DF_COLUMN_ID, DF_COLUMN_FOUND_NAME, DF_COLUMN_POSITION, DF_COLUMN_LIMIT, DF_COLUMN_CENTROID
  from .gis.geocoding_service import GeocodingService
  from .gis.request import PayloadKind, RequestBuilder, RequestKind, MapRegion, RegionQuery
  from .gis.response import Answer, GeocodedFeature, Namesake, AmbiguousFeature, LevelKind
  from .gis.response import SuccessResponse, Response, AmbiguousResponse, ErrorResponse
  from .type_assertion import assert_type, assert_list_type
label_desc: Use image node_id 3 for calling a global function with example usage: _create_multiple_error_message(request, namesakes, total_namesake_count) and returns: text