class_docstr: Base class for K8S Tests.
class_docstr_tok: ["Base","class","for","K8S","Tests","."]
code: def _get_session_with_retries(self):
      session = requests.Session()
      session.auth = ("admin", "admin")
      retries = Retry(total=3, backoff_factor=1)
      session.mount("http://", HTTPAdapter(max_retries=retries))
      session.mount("https://", HTTPAdapter(max_retries=retries))
      return session
  
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 5 for calling the BaseK8STest obj's underlying member method code with example usage: obj._get_session_with_retries() and returns: session