code: def to_dict(self) -> Dict[str, Tuple[str, str, str]]:
      return {self.id: (self.message, self.name, self.reason)}
  
imports: from functools import reduce
  from typing import Dict, NamedTuple, Tuple
label_desc: Use image node_id 1 for calling the Message obj's underlying member method code with example usage: obj.to_dict() and returns: dict