docstr: Creates `Ticket` from dictionary.
docstr_tok: ["Creates","`","Ticket","`","from","dictionary","."]
code: def from_dict(cls, data: Dict[Text, Union[int, float]]) -> "Ticket":
      """Creates `Ticket` from dictionary."""
      return cls(number=data["number"], expires=data["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 5 for calling the Ticket obj's underlying member method code with example usage: obj.from_dict(cls, data) and returns: cls