class_docstr: Container for data that can be used to describe a conversation turn.
  
  The turn is described by a set of attributes such as e.g. `TEXT`  and  `INTENT`
  when describing a user utterance or e.g. `ACTION_NAME` for describing a bot action.
  The container includes raw information (`self.data`) as well as features
  (`self.features`) for each such attribute.
  Moreover, the message has a timestamp and can keep track about information
  on a specific subset of attributes (`self.output_properties`).
docstr: Checks whether the message is a core message or from the domain.
  
  E.g. a core message is created from a story or a domain action,
  not from the NLU data.
  
  Returns:
      True, if message is a core or domain message, false otherwise.
docstr_tok: ["Checks","whether","the","message","is","a","core","message","or","from","the","domain",".","E.g",".","a","core","message","is","created","from","a","story","or","a","domain","action",",","not","from","the","NLU","data",".","Returns",":","True",",","if","message","is","a","core","or","domain","message",",","false","otherwise","."]
code: def is_core_or_domain_message(self) -> bool:
      """Checks whether the message is a core message or from the domain.
  
      E.g. a core message is created from a story or a domain action,
      not from the NLU data.
  
      Returns:
          True, if message is a core or domain message, false otherwise.
      """
      return bool(
          self.data.get(ACTION_NAME)
          or self.data.get(ACTION_TEXT)
          or (
              (self.data.get(INTENT) or self.data.get(RESPONSE))
              and not self.data.get(TEXT)
          )
          or (
              self.data.get(TEXT)
              and not (self.data.get(INTENT) or self.data.get(RESPONSE))
          )
      )
  
imports: from typing import Any, Optional, Tuple, Text, Dict, Set, List
  import typing
  import copy
  import rasa.shared.utils.io
  from rasa.shared.exceptions import RasaException
  from rasa.shared.nlu.constants import TEXT, INTENT, RESPONSE, INTENT_RESPONSE_KEY, METADATA, METADATA_INTENT, METADATA_EXAMPLE, ENTITIES, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, RESPONSE_IDENTIFIER_DELIMITER, FEATURE_TYPE_SENTENCE, FEATURE_TYPE_SEQUENCE, ACTION_TEXT, ACTION_NAME, TEXT_TOKENS
  from rasa.shared.constants import DIAGNOSTIC_DATA
label_desc: Use image node_id 22 for calling the Message obj's underlying member method code with example usage: obj.is_core_or_domain_message() and returns: bool