code: def get_business_day_convention(
      business_day_convention: _BusinessDayConventionProtoType,
  ) -> Tuple[dateslib.BusinessDayConvention, bool]:
      """Returns business day convention and the end of month flag."""
      try:
          return _business_day_convention_map[business_day_convention]
      except KeyError:
          raise KeyError(
              f"{business_day_convention} is not mapped to a business day convention"
          )
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/market_data/utils.py
imports: import functools
  from typing import Callable, Dict, Tuple, List, Union
  from tf_quant_finance import datetime
  from tf_quant_finance.experimental.pricing_platform.framework.core import business_days
  from tf_quant_finance.experimental.pricing_platform.framework.core import daycount_conventions
  from tf_quant_finance.experimental.pricing_platform.framework.core import processed_market_data
  from tf_quant_finance.experimental.pricing_platform.framework.core import types
  from tf_quant_finance.experimental.pricing_platform.instrument_protos import period_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: get_business_day_convention(business_day_convention) and returns: _business_day_convention_map