class_docstr: Context-manager that sets the experimental mode on or off.
  
  :class:`set_experimental_mode` will enable or disable the experimental mode
  based on its argument :attr:`mode`.
  It can be used as a context-manager or as a function.
  
  See :class:`experimental_mode` above for more details.
class_docstr_tok: ["Context-manager","that","sets","the","experimental","mode","on","or","off",".",":","class",":","`","set_experimental_mode","`","will","enable","or","disable","the","experimental","mode","based","on","its","argument",":","attr",":","`","mode","`",".","It","can","be","used","as","a","context-manager","or","as","a","function",".","See",":","class",":","`","experimental_mode","`","above","for","more","details","."]
code: def __init__(self, mode: bool, options: Options = None) -> None:
      self.options = get_options(options)
      self.previous_state = {
          option: __experimental_flag__[option]
          for option in self.options
      }
      set_experimental_mode_enabled(mode, self.options)
  
file_path: pytorch_geometric/torch_geometric/experimental.py
imports: import functools
  import inspect
  from typing import Any, Callable, Dict, List, Optional, Union
  import torch
  from torch_geometric.utils import *
label_desc: Use image node_id 1 to create a new set_experimental_mode object  with example: obj = set_experimental_mode(mode, options)