code: def _get_hash(
      american_option_proto: american_option_pb2.AmericanEquityOption,
  ) -> Tuple[int, types.CurrencyProtoType]:
      """Computes hash key for the batching strategy."""
      currency = currencies.from_proto_value(
          american_option_proto.currency
      )
      bank_holidays = american_option_proto.bank_holidays
      business_day_convention = (
          american_option_proto.business_day_convention
      )
      h = utils.hasher([bank_holidays, business_day_convention])
      return h, currency
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/equity_instruments/american_option/proto_utils.py
imports: from typing import Any, List, Dict, Tuple, Optional
  import tensorflow.compat.v2
  from tf_quant_finance.experimental.pricing_platform.framework import utils
  from tf_quant_finance.experimental.pricing_platform.framework.core import business_days
  from tf_quant_finance.experimental.pricing_platform.framework.core import currencies
  from tf_quant_finance.experimental.pricing_platform.framework.core import curve_types
  from tf_quant_finance.experimental.pricing_platform.framework.core import types
  from tf_quant_finance.experimental.pricing_platform.framework.equity_instruments import utils
  from tf_quant_finance.experimental.pricing_platform.framework.rate_instruments import cashflow_streams
  from tf_quant_finance.experimental.pricing_platform.framework.rate_instruments import utils
  from tf_quant_finance.experimental.pricing_platform.instrument_protos import american_equity_option_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _get_hash(american_option_proto) and returns: h,  currency