class_docstr: Base class for K8S Tests.
class_docstr_tok: ["Base","class","for","K8S","Tests","."]
code: def _num_pods_in_namespace(namespace):
      air_pod = check_output(
          ["kubectl", "get", "pods", "-n", namespace]
      ).decode()
      air_pod = air_pod.splitlines()
      names = [
          re2.compile(r"\s+").split(x)[0]
          for x in air_pod
          if "airflow" in x
      ]
      return len(names)
  
imports: from __future__ import annotations
  import os
  import subprocess
  import tempfile
  import time
  from datetime import datetime
  from pathlib import Path
  from subprocess import check_call, check_output
  import pytest
  import re2
  import requests
  import requests.exceptions
  from requests.adapters import HTTPAdapter
  from urllib3.util.retry import Retry
label_desc: Use image node_id 3 for calling the BaseK8STest obj's underlying member method code with example usage: obj._num_pods_in_namespace(namespace) and returns: len