code: def get_hash(
      swaption_instance: swaption_proto.Swaption,
  ) -> Tuple[int, bool]:
      """Computes hash key for the batching strategy."""
      return swap_proto_utils.get_hash(swaption_instance.swap)
  
imports: from typing import Any, Dict, List, Tuple
  from tf_quant_finance.experimental.pricing_platform.framework.rate_instruments.interest_rate_swap import proto_utils
  from tf_quant_finance.experimental.pricing_platform.instrument_protos import swaption_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: get_hash(swaption_instance) and returns: swap_proto_utils