def METHOD_NAME(my_date):
    schema = {
        "fields": [
            {
                "name": "timestamp-millis",
                "type": {"type": "long", "logicalType": "timestamp-millis"},
            },
            {
                "name": "timestamp-micros",
                "type": {"type": "long", "logicalType": "timestamp-micros"},
            },
        ],
        "name": "test_problematic_timestamp_millis",
        "type": "record",
    }
    binary = serialize(
        schema, {"timestamp-millis": my_date, "timestamp-micros": my_date}
    )
    roundtrip_data = deserialize(schema, binary)
    assert_naive_datetime_equal_to_tz_datetime(
        my_date, roundtrip_data["timestamp-millis"]
    )
    assert_naive_datetime_equal_to_tz_datetime(
        my_date, roundtrip_data["timestamp-micros"]
    )