code: def set_rng_state(new_state: Tensor) -> None:
      r"""Sets the random number generator state.
  
      Args:
          new_state (torch.ByteTensor): The desired state
      """
      new_state_copy = new_state.clone(
          memory_format=torch.contiguous_format
      )
      _get_default_mps_generator().set_state(new_state_copy)
  
file_path: pytorch/torch/mps/__init__.py
imports: import torch
  from ..None import Tensor
  from .None import profiler
  from .event import Event
label_desc: Use image node_id 4 for calling a global function with example usage: set_rng_state(new_state) without return types