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
docstr: Return whether `ticket_number` is locked.
  
  Returns:
       True if `now_serving` is not equal to `ticket`.
docstr_tok: ["Return","whether","`","ticket_number","`","is","locked",".","Returns",":","True","if","`","now_serving","`","is","not","equal","to","`","ticket","`","."]
code: def is_locked(self, ticket_number: int) -> bool:
      """Return whether `ticket_number` is locked.
  
      Returns:
           True if `now_serving` is not equal to `ticket`.
      """
      return self.now_serving != ticket_number
  
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 4 for calling the TicketLock obj's underlying member method code with example usage: obj.is_locked(ticket_number) and returns: unknown