def METHOD_NAME():
    """Test tuya Bitmap datatype."""
    data = b"\x05\x00\x01\x40"
    extra = b"extra data"
    r, rest = TuyaData.deserialize(data + extra)
    assert rest == extra
    assert r.dp_type == 5
    assert r.raw == b"\x40"
    assert r.payload == 0x40
    r.payload = 0x82
    assert r.raw == b"\x82"
    data = b"\x05\x00\x02\x40\x02"
    r, _ = TuyaData.deserialize(data)
    r.payload == 0x4002
    r.payload = t.bitmap16(0x2004)
    assert r.raw == b"\x20\x04"
    data = b"\x05\x00\x04\x40\x02\x80\x01"
    r, _ = TuyaData.deserialize(data)
    r.payload == 0x40028001
    r.payload = t.bitmap32(0x10082004)
    assert r.raw == b"\x10\x08\x20\x04"