docs: def tournament_name2number(self, name):
          """Translate tournament name to tournament number.
  
          Args:
              name (str): tournament name to translate
  
          Returns:
              number (int): number of the tournament or `None` if unknown.
  
          Examples:
              >>> NumerAPI().tournament_name2number('delta')
              4
              >>> NumerAPI().tournament_name2number('foo')
              None
          """
          tournaments = self.get_tournaments()
          d = {t['name']: t['tournament'] for t in tournaments}
          return d.get(name, None)