code: def get_all_hands():
      """Return all valid poker hands, sorted from weakest to strongest"""
      return sorted(
          HighCard.all()
          + OnePair.all()
          + TwoPair.all()
          + ThreeOfAKind.all()
          + FullHouse.all()
          + FourOfAKind.all()
      )
  
imports: from functools import total_ordering
  from itertools import combinations
  from typing import Literal, Union
label_desc: Use image node_id 3 for calling a global function with example usage: get_all_hands() and returns: sorted