code: def get_cities_by_name(self, name):
          
  
          if name not in self.cities_by_names:
              if self.cities_items is None:
                  self.cities_items = list(self.get_cities().items())
              self.cities_by_names[name] = [dict({gid: city})
                  for gid, city in self.cities_items if city['name'] == name]
          return self.cities_by_names[name]
docs: Get a list of city dictionaries with the given name.
  
          City names cannot be used as keys, as they are not unique.