code: def get_rarity_info(self, rarity: str):
          
          for c in self.constants.rarities:
              if c.name == rarity:
                  return c
docs: Returns card info from constants
  
          Parameters
          ---------
          rarity: str
              A rarity name
  
          Returns None or Constants