def METHOD_NAME(tmpdir):
    data_fname = tmpdir.join("test_read.sigmf-data")
    meta_fname = tmpdir.join("test_read.sigmf-meta")
    actual = cp.random.rand(100).astype(cp.complex64)
    meta = {"core:datatype": "cf32"}
    cusignal.write_bin(str(data_fname), actual)
    meta_fname.write(json.dumps(meta))
    binary = cusignal.read_bin(str(data_fname))
    buffer = cusignal.get_shared_mem(binary.shape, cp.ubyte)
    cusignal.write_sigmf(str(data_fname), actual, buffer=buffer, append=False)
    expect = cusignal.read_sigmf(str(data_fname), str(meta_fname))
    cp.testing.assert_array_equal(actual, expect)