nodes: 0, module; 1, function_definition; 2, function_name:build_cards; 3, parameters; 4, block; 5, default_parameter; 6, default_parameter; 7, expression_statement; 8, expression_statement; 9, if_statement; 10, expression_statement; 11, return_statement; 12, identifier:jokers; 13, False; 14, identifier:num_jokers; 15, integer:0; 16, comment:"""
      Builds a list containing a full French deck of 52 Card instances. The
      cards are sorted according to ``DEFAULT_RANKS``.
  
      .. note:
          Adding jokers may break some functions & methods at the moment.
  
      :arg bool jokers:
          Whether or not to include jokers in the deck.
      :arg int num_jokers:
          The number of jokers to include.
  
      :returns:
          A list containing a full French deck of 52 Card instances.
  
      """; 17, assignment; 18, identifier:jokers; 19, block; 20, augmented_assignment; 21, identifier:new_deck; 22, identifier:new_deck; 23, list; 24, expression_statement; 25, identifier:new_deck; 26, list_comprehension; 27, augmented_assignment; 28, call; 29, for_in_clause; 30, for_in_clause; 31, identifier:new_deck; 32, list_comprehension; 33, identifier:Card; 34, argument_list; 35, identifier:value; 36, identifier:VALUES; 37, identifier:suit; 38, identifier:SUITS; 39, call; 40, for_in_clause; 41, identifier:value; 42, identifier:suit; 43, identifier:Card; 44, argument_list; 45, identifier:i; 46, call; 47, string:"Joker"; 48, None; 49, identifier:xrange; 50, argument_list; 51, identifier:num_jokers
code: def build_cards(jokers=False, num_jokers=0):
      """
      Builds a list containing a full French deck of 52 Card instances. The
      cards are sorted according to ``DEFAULT_RANKS``.
  
      .. note:
          Adding jokers may break some functions & methods at the moment.
  
      :arg bool jokers:
          Whether or not to include jokers in the deck.
      :arg int num_jokers:
          The number of jokers to include.
  
      :returns:
          A list containing a full French deck of 52 Card instances.
  
      """
      new_deck = []
  
      if jokers:
          new_deck += [Card("Joker", None) for i in xrange(num_jokers)]
  
      new_deck += [Card(value, suit) for value in VALUES for suit in SUITS]
  
      return new_deck