code: def get_client(self, client_type):
          
          if client_type not in self._client_cache:
              client_class = self._get_class(client_type)
              self._client_cache[client_type] = self._get_client_instance(client_class)
          return self._client_cache[client_type]
docs: get_client.