def get_country_by_name(self, country_name) -> '<STR_LIT>':
VALID_STR.validate(country_name, '<STR_LIT>', exc=ValueError)<EOL>if country_name not in self._countries_by_name.keys():<EOL><INDENT>for country in self.countries:<EOL><INDENT>if country.country_name == country_name:<EOL><INDENT>return country<EOL><DEDENT><DEDENT>raise ValueError(country_name)<EOL><DEDENT>else:<EOL><INDENT>return self._countries_by_name[country_name]<EOL><DEDENT>
Gets a country in this coalition by its name

Args:
    country_name: country name

Returns: Country