code: def resolve_class(operation):
          
  
          create_txn_class = Transaction.type_registry.get(Transaction.CREATE)
          return Transaction.type_registry.get(operation, create_txn_class)
docs: For the given `tx` based on the `operation` key return its implementation class