code: def to_dict(self):
      ret = {"question": self.text, "id": self.uid, "answers": []}
      return ret
  
imports: from typing import List, Union
label_desc: Use image node_id 2 for calling the Question obj's underlying member method code with example usage: obj.to_dict() and returns: ret