code: def _validate_country_codes(self, ccs):
          
          for cc in ccs:
              if cc not in self.country_codes:
                  raise InvalidCountryCodeError(cc)
          return {'country': ",".join(ccs)}
docs: Validate country code filters for use in requests.