def METHOD_NAME():
    proc_rec = cg.SimulatedProcessorWithLocalDeviceRecord('rainbow')
    proc = proc_rec.get_processor()
    samp = proc_rec.get_sampler()
    circ = cirq.Circuit(cirq.measure(cirq.GridQubit(5, 4)))
    res1 = proc.run(circ)
    assert isinstance(res1, cg.EngineResult)
    res2 = samp.run(circ)
    assert isinstance(res2, cg.EngineResult)