def METHOD_NAME():
    program = NothingProgram([cirq.Circuit()], None)
    job1 = NothingJob(
        job_id='test', processor_id='test1', parent_program=program, repetitions=100, sweeps=[]
    )
    job2 = NothingJob(
        job_id='test', processor_id='test2', parent_program=program, repetitions=100, sweeps=[]
    )
    job3 = NothingJob(
        job_id='test', processor_id='test3', parent_program=program, repetitions=100, sweeps=[]
    )
    job2.set_labels({'color': 'blue', 'shape': 'square'})
    job3.set_labels({'color': 'green', 'shape': 'square'})
    # Use private variables for deterministic searches
    job1._create_time = datetime.datetime.fromtimestamp(1000)
    job2._create_time = datetime.datetime.fromtimestamp(2000)
    job3._create_time = datetime.datetime.fromtimestamp(3000)
    failure = quantum.ExecutionStatus.State.FAILURE
    success = quantum.ExecutionStatus.State.SUCCESS
    job1._status = failure
    job2._status = failure
    job3._status = success
    with pytest.raises(KeyError):
        program.get_job('jerb')
    program.add_job('jerb', job1)
    program.add_job('employ', job2)
    program.add_job('jobbies', job3)
    assert program.get_job('jerb') == job1
    assert program.get_job('employ') == job2
    assert program.get_job('jobbies') == job3
    assert set(program.list_jobs(has_labels={'shape': 'square'})) == {job2, job3}
    assert program.list_jobs(has_labels={'color': 'blue'}) == [job2]
    assert program.list_jobs(has_labels={'color': 'green'}) == [job3]
    assert program.list_jobs(has_labels={'color': 'yellow'}) == []
    assert set(program.list_jobs(created_before=datetime.datetime.fromtimestamp(3500))) == {
        job1,
        job2,
        job3,
    }
    assert set(program.list_jobs(created_before=datetime.datetime.fromtimestamp(2500))) == {
        job1,
        job2,
    }
    assert set(program.list_jobs(created_before=datetime.datetime.fromtimestamp(1500))) == {job1}
    assert program.list_jobs(created_before=datetime.datetime.fromtimestamp(500)) == []
    assert set(program.list_jobs(created_after=datetime.datetime.fromtimestamp(500))) == {
        job1,
        job2,
        job3,
    }
    assert set(program.list_jobs(created_after=datetime.datetime.fromtimestamp(1500))) == {
        job2,
        job3,
    }
    assert set(program.list_jobs(created_after=datetime.datetime.fromtimestamp(2500))) == {job3}
    assert program.list_jobs(created_after=datetime.datetime.fromtimestamp(3500)) == []
    assert set(program.list_jobs(execution_states={failure, success})) == {job1, job2, job3}
    assert program.list_jobs(execution_states={success}) == [job3]
    assert set(program.list_jobs(execution_states={failure})) == {job1, job2}
    ready = quantum.ExecutionStatus.State.READY
    assert program.list_jobs(execution_states={ready}) == []
    assert set(program.list_jobs(execution_states={})) == {job1, job2, job3}
    assert set(program.list_jobs(has_labels={'shape': 'square'}, execution_states={failure})) == {
        job2
    }