code: def get_rng_state() -> dict:
      return {
          "torch_rng": torch.get_rng_state(),
          "torch_rng_cuda": torch.cuda.get_rng_state_all(),
          "python_rng": random.getstate(),
      }
  
imports: import random
  import warnings
  import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: get_rng_state() and returns: dict