def METHOD_NAME(cls, lambd):
    """Bind payload class to the LTP packets.
    :param cls: the class to bind
    :param lambd: lambda that will be called to check
        whether or not the cls should be used
        ex: lambda pkt: ...
    """
    _ltp_payload_conditions[cls] = lambd