code: def _cancel(self, id_cancel) -> None:
          
          if _logger is not None:
              self._log(DEBUG, "cancel", id=id_cancel)
          for event in self._events:
              if event.identifier == id_cancel:
                  event.cancel()
                  break
docs: Cancels a previously scheduled event. This method is private, and is meant for internal usage by the
          :py:class:`Simulator` and :py:class:`Process` classes, and helper functions of this module.