code: def convention_from_proto_value(
      value: int,
  ) -> BusinessDayConventionProtoType:
      """Creates BusinessDayConvention from a proto field value."""
      return BusinessDayConvention(
          business_days_pb2.BusinessDayConvention.Name(value)
      )
  
imports: import enum
  from tf_quant_finance.experimental.pricing_platform.instrument_protos import business_days_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: convention_from_proto_value(value) and returns: BusinessDayConvention