code: def as_dict(self) -> Dict[Text, Any]:
      return dict(number=self.number, expires=self.expires)
  
imports: import json
  import logging
  from collections import deque
  import time
  from typing import Text, Optional, Union, Deque, Dict, Any
label_desc: Use image node_id 3 for calling the Ticket obj's underlying member method code with example usage: obj.as_dict() and returns: dict