class_docstr: A Python context for wrapping a cancellable ConcreteFunction.
code: def __exit__(self, exc_type, exc_value, exc_tb):
      global _active_context
      _active_context = None
  
file_path: tensorflow-upstream/tensorflow/python/eager/cancellation.py
imports: from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 3 for calling the CancellationManagerContext obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, exc_tb) without return types