def ack_type(capabilities):
 if ('multi_ack_detailed' in capabilities):
  return MULTI_ACK_DETAILED
 elif ('multi_ack' in capabilities):
  return MULTI_ACK
 return SINGLE_ACK

def ack_type ( capabilities ) : if ( 'multi_ack_detailed' in capabilities ) : return MULTI_ACK_DETAILED elif ( 'multi_ack' in capabilities ) : return MULTI_ACK return SINGLE_ACK
extract the ack type from a capabilities list .