def METHOD_NAME():
    @op(required_resource_keys={"prometheus"})
    def prometheus_op(context):
        g = Gauge(
            "job_last_success_unixtime",
            "Last time a batch job successfully finished",
            registry=context.resources.prometheus.registry,
        )
        g.set_to_current_time()
        recorded = context.resources.prometheus.registry.get_sample_value(
            "job_last_success_unixtime"
        )
        assert abs(time.time() - recorded) < 10.0
    assert wrap_op_in_graph_and_execute(prometheus_op, run_config=ENV, resources=RESOURCES).success