code: def _generate_message(self) -> str:
      msg = _(
          "Failed to execute %(query)s",
          query=self.sql_json_execution_context.get_query_details(),
      )
      if self.failed_reason_msg:
          msg = msg + self.failed_reason_msg
      if self.suggestion_help_msg is not None:
          msg = f"{msg} {os.linesep} {self.suggestion_help_msg}"
      return msg
  
file_path: superset/superset/sqllab/exceptions.py
imports: from __future__ import annotations
  import os
  from typing import TYPE_CHECKING
  from flask_babel import lazy_gettext
  from superset.errors import SupersetError, SupersetErrorType
  from superset.exceptions import SupersetException
label_desc: Use image node_id 2 for calling the SqlLabException obj's underlying member method code with example usage: obj._generate_message() and returns: msg