def METHOD_NAME():
    p = cg.SimulatedProcessorWithLocalDeviceRecord('rainbow')
    assert str(p) == 'rainbow-simulator'
    assert isinstance(p.get_sampler(), cg.engine.ProcessorSampler)
    # The actual simulator hiding behind the indirection is
    # p.get_sampler() -> ProcessorSampler
    # p.get_sampler().processor._sampler -> Validating Sampler
    # p.get_sampler().processor._sampler._sampler -> The actual simulator
    assert isinstance(p.get_sampler().processor._sampler._sampler, cirq.Simulator)
    p = cg.SimulatedProcessorWithLocalDeviceRecord('rainbow', noise_strength=1e-3)
    assert str(p) == 'rainbow-depol(1.000e-03)'
    assert isinstance(p.get_sampler().processor._sampler._sampler, cirq.DensityMatrixSimulator)
    p = cg.SimulatedProcessorWithLocalDeviceRecord('rainbow', noise_strength=float('inf'))
    assert str(p) == 'rainbow-zeros'
    assert isinstance(p.get_sampler().processor._sampler._sampler, cirq.ZerosSampler)