def METHOD_NAME(value):
    typestr = "struct<field1: string, field2: float64>"
    a = ibis.struct(value, type=typestr)
    assert a.op().value == frozendict(
        field1=str(value["field1"]), field2=float(value["field2"])
    )
    assert a.type() == dt.dtype(typestr)