code: def __init__(
      self,
      meta,
      response=None,
      response_data=None,
      request_cls=None,
      session=None,
  ):
      assert isinstance(meta, ResponseMeta)
      if response and not isinstance(response, Response):
          raise ValueError(
              "response should be an instance of %s" % Response.__name__
          )
      elif response_data and not isinstance(response_data, dict):
          raise TypeError(
              "data should be an instance of {}".format(dict.__name__)
          )
  
      self.__meta = meta
      self.__response = response
      self.__request_cls = request_cls
      self.__session = session
      self.__async_result = None
  
      if response_data is not None:
          self.__response_data = response_data
      elif response is not None:
          try:
              self.__response_data = response.to_dict()
          except AttributeError:
              raise TypeError(
                  "response should be an instance of {}".format(
                      Response.__name__
                  )
              )
      else:
          self.__response_data = None
  
file_path: clearml/clearml/backend_api/session/callresult.py
imports: import sys
  import time
  from ...backend_api.utils import get_response_cls
  from .response import ResponseMeta, Response
  from .errors import ResultNotReadyError, TimeoutExpiredError
label_desc: Use image node_id 6 to create a new CallResult object from inherited base classes: object with example: obj = CallResult(meta, response, response_data, request_cls, session)