def decode_hex16(value, size=None, minimum=False):
 value = value.encode()
 if ((size is not None) and (((not minimum) and (len(value) != (size * 2))) or (minimum and (len(value) < (size * 2))))):
  raise errors.DeserializationError()
 error_cls = (TypeError if six.PY2 else binascii.Error)
 try:
  return binascii.unhexlify(value)
 except error_cls as error:
  raise errors.DeserializationError(error)

def decode_hex16 ( value , size = None , minimum = False ) : value = value . encode ( ) if ( ( size is not None ) and ( ( ( not minimum ) and ( len ( value ) != ( size * 2 ) ) ) or ( minimum and ( len ( value ) < ( size * 2 ) ) ) ) ) : raise errors . DeserializationError ( ) error_cls = ( TypeError if six . PY2 else binascii . Error ) try : return binascii . unhexlify ( value ) except error_cls as error : raise errors . DeserializationError ( error )
decode hexlified field .