code: def set_payload(
      self,
      execution_context: SqlJsonExecutionContext,
      execution_status: SqlJsonExecutionStatus,
  ) -> None:
      self._exc_status = execution_status
      if execution_status == SqlJsonExecutionStatus.HAS_RESULTS:
          self.payload = execution_context.get_execution_result() or {}
      else:
          self.payload = execution_context.query.to_dict()
  
file_path: superset/superset/sqllab/execution_context_convertor.py
imports: from __future__ import annotations
  import logging
  from typing import Any, TYPE_CHECKING
  import simplejson
  import superset.utils.core
  from superset.sqllab.command_status import SqlJsonExecutionStatus
  from superset.sqllab.utils import apply_display_max_row_configuration_if_require
label_desc: Use image node_id 2 for calling the ExecutionContextConvertor obj's underlying member method code with example usage: obj.set_payload(execution_context, execution_status) without return types