class_docstr: Context manager that does no additional processing.
  Used as a stand-in for a normal context manager, when a particular
  block of code is only sometimes used with a normal context manager:
  cm = optional_cm if condition else nullcontext()
  with cm:
      # Perform operation, using optional_cm if condition is True
class_docstr_tok: ["Context","manager","that","does","no","additional","processing",".","Used","as","a","stand-in","for","a","normal","context","manager",",","when","a","particular","block","of","code","is","only","sometimes","used","with","a","normal","context","manager",":","cm","=","optional_cm","if","condition","else","nullcontext","(",")","with","cm",":","#","Perform","operation",",","using","optional_cm","if","condition","is","True"]
code: def __init__(self, enter_result=None):
      self.enter_result = enter_result
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 to create a new nullcontext object from inherited base classes: AbstractContextManager with example: obj = nullcontext(enter_result)