code: def synchronize() -> None:
      r"""Waits for all kernels in all streams on a MPS device to complete."""
      return torch._C._mps_deviceSynchronize()
  
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 2 for calling a global function with example usage: synchronize() and returns: torch