class_docstr: Class implementing dummy implementation of _thread.LockType.
  
  Compatibility is maintained by maintaining self.locked_status
  which is a boolean that stores the state of the lock.  Pickling of
  the lock, though, should not be done since if the _thread module is
  then used with an unpickled ``lock()`` from here problems could
  occur from this class not having atomic methods.
class_docstr_tok: ["Class","implementing","dummy","implementation","of","_thread.LockType",".","Compatibility","is","maintained","by","maintaining","self.locked_status","which","is","a","boolean","that","stores","the","state","of","the","lock",".","Pickling","of","the","lock",",","though",",","should","not","be","done","since","if","the","_thread","module","is","then","used","with","an","unpickled","``","lock","(",")","``","from","here","problems","could","occur","from","this","class","not","having","atomic","methods","."]
code: def locked(self):
      return self.locked_status
  
file_path: catboost/contrib/deprecated/python/functools32/functools32/_dummy_thread32.py
label_desc: Use image node_id 5 for calling the LockType obj's underlying member method code with example usage: obj.locked() and returns: self