class_docstr: Class wrapper around release mechanism so that the lock is automatically
  released when the program exits (even when crashing or being interrupted),
  using the __del__ class method.
class_docstr_tok: ["Class","wrapper","around","release","mechanism","so","that","the","lock","is","automatically","released","when","the","program","exits","(","even","when","crashing","or","being","interrupted",")",",","using","the","__del__","class","method","."]
code: def __init__(self, tmp_dir):
      self.tmp_dir = tmp_dir
  
imports: from __future__ import absolute_import, print_function, division
  import atexit
  import os
  import socket
  import time
  import logging
  from six import PY3
  from contextlib import contextmanager
  import numpy
  from theano import config
label_desc: Use image node_id 1 to create a new Unlocker object from inherited base classes: object with example: obj = Unlocker(tmp_dir)