class_docstr: Context manager for making an algorithm instance available to zipline API
  functions within a scoped block.
class_docstr_tok: ["Context","manager","for","making","an","algorithm","instance","available","to","zipline","API","functions","within","a","scoped","block","."]
docstr: Restore the algo instance stored in __enter__.
docstr_tok: ["Restore","the","algo","instance","stored","in","__enter__","."]
code: def __exit__(self, _type, _value, _tb):
      """
      Restore the algo instance stored in __enter__.
      """
      set_algo_instance(self.old_algo_instance)
  
file_path: zipline/zipline/utils/api_support.py
imports: import zipline.api
  from zipline.utils.compat import wraps
  from zipline.utils.algo_instance import get_algo_instance, set_algo_instance
label_desc: Use image node_id 3 for calling the ZiplineAPI obj's underlying member method code with example usage: obj.__exit__(_type, _value, _tb) without return types