class_docstr: Tests PgBouncer.
class_docstr_tok: ["Tests","PgBouncer","."]
code: def test_pgbouncer_service_extra_annotations(self):
      docs = render_chart(
          values={
              "pgbouncer": {
                  "enabled": True,
                  "service": {"extraAnnotations": {"foo": "bar"}},
              },
          },
          show_only=["templates/pgbouncer/pgbouncer-service.yaml"],
      )
  
      assert {
          "prometheus.io/scrape": "true",
          "prometheus.io/port": "9127",
          "foo": "bar",
      } == jmespath.search("metadata.annotations", docs[0])
  
imports: from __future__ import annotations
  import base64
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 5 for calling the TestPgbouncer obj's underlying member method code with example usage: obj.test_pgbouncer_service_extra_annotations() without return types