def METHOD_NAME(sample, marshal):
    # the header:
    #
    #  uint32 length
    #  uint16 type
    #  ...
    #
    # e.g.:
    # 4c:00:00:00:14:00:...
    #
    # this test uses:
    marshal.key_format = 'I'  # 4 bytes LE as the key
    marshal.key_offset = 2  # but with offset 2
    marshal.key_mask = 0xFFFF0000  # ignore 2 lower bytes:
    #
    # example 1:
    # offset 2 -> 00:00:14:00
    # format I -> 0x140000
    # & mask -> 0x140000
    #
    # example 2:
    # offset 2 -> 01:02:14:00
    # format I -> 0x140201
    # & mask -> 0x140000
    #
    # fix msg map to use new keys:
    for key, value in tuple(marshal.msg_map.items()):
        marshal.msg_map[key << 16] = value
    #
    # ok, now should run
    return run_using_marshal(sample, marshal)