class_docstr: Tests security context.
code: def test_metrics_explorer_container_setting(self):
      ctx_value = {"allowPrivilegeEscalation": False}
      docs = render_chart(
          values={
              "pgbouncer": {
                  "enabled": True,
                  "metricsExporterSidecar": {
                      "securityContexts": {"container": ctx_value}
                  },
              },
          },
          show_only=["templates/pgbouncer/pgbouncer-deployment.yaml"],
      )
  
      assert ctx_value == jmespath.search(
          "spec.template.spec.containers[1].securityContext", docs[0]
      )
  
imports: from __future__ import annotations
  import jmespath
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 8 for calling the TestSecurityContext obj's underlying member method code with example usage: obj.test_metrics_explorer_container_setting() without return types