class_docstr: Locking mechanism that issues tickets managing access to conversation IDs.
  
  Tickets are issued in the order in which they are requested. A detailed
  explanation of the ticket lock algorithm can be found at
  http://pages.cs.wisc.edu/~remzi/OSTEP/threads-locks.pdf#page=13
code: def __init__(
      self,
      conversation_id: Text,
      tickets: Optional[Deque[Ticket]] = None,
  ) -> None:
      self.conversation_id = conversation_id
      self.tickets = tickets or deque()
  
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 1 to create a new TicketLock object  with example: obj = TicketLock(conversation_id, tickets)