code: def flags(enabled=False):
      with __allow_nonbracketed_mutation():
          orig_flags = set_flags(enabled)
      try:
          yield
      finally:
          with __allow_nonbracketed_mutation():
              set_flags(orig_flags[0])
  
file_path: pytorch/torch/backends/mkldnn/__init__.py
imports: import sys
  from contextlib import contextmanager
  import torch
  from torch.backends import __allow_nonbracketed_mutation, ContextProp, PropModule
label_desc: Use image node_id 3 for calling a global function with example usage: flags(enabled) without return types