code: def _setup_requests_session() -> requests.Session:
      session = requests.Session()
      adapter = requests.adapters.HTTPAdapter(
          max_retries=_REQUEST_RETRY_STRATEGY,
          pool_connections=_REQUEST_POOL_CONNECTIONS,
          pool_maxsize=_REQUEST_POOL_MAXSIZE,
      )
      session.mount("http://", adapter)
      session.mount("https://", adapter)
      return session
  
imports: import logging
  import re
  import sys
  import threading
  from collections import defaultdict, deque
  from functools import lru_cache
  from types import ModuleType
  from typing import TYPE_CHECKING, Dict, List, Mapping, Sequence, Tuple, Union
  import requests
  import requests.adapters
  import urllib3
  import wandb
  from wandb.sdk.lib import hashutil, telemetry
  from .aggregators import aggregate_last, aggregate_mean
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 1 for calling a global function with example usage: _setup_requests_session() and returns: session