def get_season_code_from_name(self, season_name) -> int:
        """
        Args:
            season_name: season name

        Returns: season code
        """
        self.validator_season_name.validate(season_name, 'get_season_code_from_name')
        return self.seasons_enum[season_name]