code: def reset_grad_fn_seq_nr():
      # NB: reset state properly, this would be helpful towards supporting
      #     reentrant autograd if we actually wanted to do that.
      global current_meta
  
      if should_preserve_node_meta:
          if current_meta["prev_grad_fn_seq_nr"] is None:
              assert current_meta["prev_in_grad_fn"] is None
              del current_meta["grad_fn_seq_nr"]
              del current_meta["in_grad_fn"]
          current_meta["grad_fn_seq_nr"] = current_meta[
              "prev_grad_fn_seq_nr"
          ]
          current_meta["in_grad_fn"] = current_meta["prev_in_grad_fn"]
  
file_path: pytorch/torch/fx/traceback.py
imports: import traceback
  from contextlib import contextmanager
  from typing import List, Any, Dict
  from ._compatibility import compatibility
label_desc: Use image node_id 4 for calling a global function with example usage: reset_grad_fn_seq_nr() without return types