code: def validate_card_issue_modes(issue_mode: int, cards: list) -> list:
      
  
      supported_mask = 63  # sum of all issue_mode values
  
      if not bool(issue_mode & supported_mask):
          return []  # return empty list
  
      for i in [1 << x for x in range(len(IssueMode))]:
          if bool(i & issue_mode):
  
              try:
                  parser_fn = cast(
                      Callable[[list], Optional[list]],
                      parsers[IssueMode(i).name]
                  )
              except ValueError:
                  continue
  
              parsed_cards = parser_fn(cards)
              if not parsed_cards:
                  return []
              cards = parsed_cards
  
      return cards
docs: validate cards against deck_issue modes