def METHOD_NAME():
    @op(required_resource_keys={"prometheus"})
    def prometheus_op(context):
        i = Info(
            "my_build_version",
            "Description of info",
            registry=context.resources.prometheus.registry,
        )
        info_labels = {"version": "1.2.3", "buildhost": "foo@bar"}
        i.info(info_labels)
        metric = None
        for metric in context.resources.prometheus.registry.collect():
            if metric.name == "my_build_version":
                break
        assert metric and metric.samples[0].labels == info_labels
    assert wrap_op_in_graph_and_execute(prometheus_op, run_config=ENV, resources=RESOURCES).success