code: def war_decide(self, policy, num_cards, list_of_cards):
      cards = sorted(list_of_cards, reverse=True)
      if policy is None:
          return cards
      assert len(cards) % 2 == 0
      a = min(num_cards, 9)  # at most 9
      b = len(cards) // 2  # at most 26
      c = cards[0]  # at most 13
      # print(a, b, c, a*26*13+b*13+c, len(policy))
      if self.batawaf:
          seed = policy[a * 18 * 6 + b * 6 + c]  # type: ignore
      else:
          seed = policy[a * 26 * 13 + b * 13 + c]  # type: ignore
      if seed == 0.0:
          return cards
      state = np.random.RandomState(hash(seed) % (2**32))
      state.shuffle(cards)
      return list(cards)
  
imports: import functools
  import numpy
  from nevergrad.functions import ExperimentFunction
  from nevergrad.parametrization import parameter
label_desc: Use image node_id 12 for calling the _Game obj's underlying member method code with example usage: obj.war_decide(policy, num_cards, list_of_cards) and returns: list, cards, cards