code: def get_response_cls(request_cls):
      """Extract a request's response class using the mapping found in the module defining the request's service"""
      for req_cls in request_cls.mro():
          module = sys.modules[req_cls.__module__]
          if hasattr(module, "action_mapping"):
              return module.action_mapping[
                  (request_cls._action, request_cls._version)
              ][1]
          elif hasattr(module, "response_mapping"):
              return module.response_mapping[req_cls]
      raise TypeError("no response class!")
  
imports: import logging
  import ssl
  import sys
  import requests
  from requests.adapters import HTTPAdapter
  from urllib3.util import Retry
  from urllib3 import PoolManager
  import six
  from .session.defs import ENV_HOST_VERIFY_CERT
label_desc: Use image node_id 4 for calling a global function with example usage: get_response_cls(request_cls) and returns: module, module