class_docstr: Establishes the given context as a StackContext that will be transferred.
  
  Note that the parameter is a callable that returns a context
  manager, not the context itself.  That is, where for a
  non-transferable context manager you would say::
  
    with my_context():
  
  StackContext takes the function itself rather than its result::
  
    with StackContext(my_context):
  
  The result of ``with StackContext() as cb:`` is a deactivation
  callback.  Run this callback when the StackContext is no longer
  needed to ensure that it is not propagated any further (note that
  deactivating a context does not affect any instances of that
  context that are currently pending).  This is an advanced feature
  and not necessary in most applications.
class_docstr_tok: ["Establishes","the","given","context","as","a","StackContext","that","will","be","transferred",".","Note","that","the","parameter","is","a","callable","that","returns","a","context","manager",",","not","the","context","itself",".","That","is",",","where","for","a","non-transferable","context","manager","you","would","say",":",":","with","my_context","(",")",":","StackContext","takes","the","function","itself","rather","than","its","result",":",":","with","StackContext","(","my_context",")",":","The","result","of","``","with","StackContext","(",")","as","cb",":","``","is","a","deactivation","callback",".","Run","this","callback","when","the","StackContext","is","no","longer","needed","to","ensure","that","it","is","not","propagated","any","further","(","note","that","deactivating","a","context","does","not","affect","any","instances","of","that","context","that","are","currently","pending",")",".","This","is","an","advanced","feature","and","not","necessary","in","most","applications","."]
code: def _deactivate(self):
      self.active = False
  
imports: from __future__ import absolute_import, division, print_function, with_statement
  import sys
  import threading
  from .util import raise_exc_info
label_desc: Use image node_id 2 for calling the StackContext obj's underlying member method code with example usage: obj._deactivate() without return types