<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _StopMonitoringProcesses(self):
 """Stops monitoring all processes."""

    # We need to make a copy of the list of pids since we are changing
    # the dict in the loop.
    for pid in list(self._process_information_per_pid.keys()):
      self._RaiseIfNotRegistered(pid)
      process = self._processes_per_pid[pid]

      self._StopMonitoringProcess(process)