code: def _get_session_from_cache(
      process_id: int, thread_id: int
  ) -> requests.Session:
      """
      Create a new session per thread using global factory. Using LRU cache (maxsize 128) to avoid memory leaks when
      using thousands of threads. Cache is cleared when `configure_http_backend` is called.
      """
      return _GLOBAL_BACKEND_FACTORY()
  
imports: import io
  import os
  import threading
  import time
  import uuid
  from functools import lru_cache
  from http import HTTPStatus
  from typing import Callable, Tuple, Type, Union
  import requests
  from requests import Response
  from requests.adapters import HTTPAdapter
  from requests.models import PreparedRequest
  from ..None import constants
  from .None import logging
  from ._typing import HTTP_METHOD_T
label_desc: Use image node_id 5 for calling a global function with example usage: _get_session_from_cache(process_id, thread_id) and returns: _GLOBAL_BACKEND_FACTORY