docstr: Initializes a new object.
  
  :param lst: initial content
  :type lst: list or None
docstr_tok: ["Initializes","a","new","object",".",":","param","lst",":","initial","content",":","type","lst",":","list","or","None"]
code: def __init__(self, lst=None):
      """
      Initializes a new object.
  
      :param lst: initial content
      :type lst: list or None
      """
      if lst:
          self._content = lst
      else:
          self._content = []
      self._lock = threading.Lock()
  
imports: import abc
  import random
  import threading
label_desc: Use image node_id 1 to create a new ThreadSafeQueue object from inherited base classes: object with example: obj = ThreadSafeQueue(lst)