code: def install_monitor(self, monitor_pattern: str, monitor_stat_func_name: str):
          
          self._monitor = mx.monitor.Monitor(interval=C.MEASURE_SPEED_EVERY,
                                             stat_func=C.MONITOR_STAT_FUNCS.get(monitor_stat_func_name),
                                             pattern=monitor_pattern,
                                             sort=True)
          self.module.install_monitor(self._monitor)
          logger.info("Installed MXNet monitor; pattern='%s'; statistics_func='%s'",
                      monitor_pattern, monitor_stat_func_name)
docs: Installs an MXNet monitor onto the underlying module.
  
          :param monitor_pattern: Pattern string.
          :param monitor_stat_func_name: Name of monitor statistics function.