code: def set_flags(_enabled=None, _strategy=None):
      orig_flags = (enabled, None if not is_available() else strategy)
      if _enabled is not None:
          _set_enabled(_enabled)
      if _strategy is not None:
          _set_strategy(_strategy)
      return orig_flags
  
file_path: pytorch/torch/backends/opt_einsum/__init__.py
imports: import sys
  import warnings
  from contextlib import contextmanager
  from functools import lru_cache
  from typing import Any
  from torch.backends import __allow_nonbracketed_mutation, ContextProp, PropModule
label_desc: Use image node_id 7 for calling a global function with example usage: set_flags(_enabled, _strategy) and returns: orig_flags