class_docstr: Functionalize ops with side effect in graph module by replacing the op with
  functional version of it. A new dependency token (`dep_token`) will be
  created and propagated through functional ops to output.
  For example:
  ```
  def f(x):
      sym_constrain_range(x.shape[0], min=1, max=3)
      return x.add(3)
  ```
  Will be transformed to:
  ```
  def f(x):
      dep_token0 = _make_dep_token()
      dep_token1 = _functional_sym_constrain_range(
          x.shape[0], min=1, max=3, dep_token=dep_token0
      )
  
      return x.add(3), dep_token1
  ```
class_docstr_tok: ["Functionalize","ops","with","side","effect","in","graph","module","by","replacing","the","op","with","functional","version","of","it",".","A","new","dependency","token","(","`","dep_token","`",")","will","be","created","and","propagated","through","functional","ops","to","output",".","For","example",":","``","`","def","f","(","x",")",":","sym_constrain_range","(","x.shape","[","0","]",",","min=1",",","max=3",")","return","x.add","(","3",")","``","`","Will","be","transformed","to",":","``","`","def","f","(","x",")",":","dep_token0","=","_make_dep_token","(",")","dep_token1","=","_functional_sym_constrain_range","(","x.shape","[","0","]",",","min=1",",","max=3",",","dep_token=dep_token0",")","return","x.add","(","3",")",",","dep_token1","``","`"]
code: def __init__(self) -> None:
      super().__init__()
      self._dep_token: Optional[ProxyValue] = None
      self._next_dep_token_index: Optional[int] = None
  
file_path: pytorch/torch/_export/passes/functionalize_side_effectful_ops_pass.py
imports: import copy
  from typing import Dict, Optional, Tuple, List
  import torch
  from torch._export.pass_base import _ExportPassBaseDeprecatedDoNotUse, PassResult, Argument
  from torch._export.pass_infra.node_metadata import NodeMetadata
  from torch._export.pass_infra.proxy_value import ProxyValue
  from torch._ops import OpOverload
label_desc: Use image node_id 1 to create a new _FunctionalizeSideEffectfulOpsPass object from inherited base classes: _ExportPassBaseDeprecatedDoNotUse with example: obj = _FunctionalizeSideEffectfulOpsPass()