class_docstr: Wrapper class of threading.Lock(), which is allowed by 'with'.
class_docstr_tok: ["Wrapper","class","of","threading.Lock","(",")",",","which","is","allowed","by","'with","'","."]
code: def __enter__(self):
      self._lock.acquire()
  
imports: import threading
  import warnings
  import six
  from google.protobuf.internal import api_implementation
label_desc: Use image node_id 2 for calling the _Lock obj's underlying member method code with example usage: obj.__enter__() without return types