docstr: Test SystemResourcesMonitor callback with 'epoch' logging interval
code: def test_system_resources_monitor_epoch(self) -> None:
      """
      Test SystemResourcesMonitor callback with 'epoch' logging interval
      """
      input_dim = 2
      dataset_len = 10
      batch_size = 2
      max_epochs = 2
  
      my_unit = DummyTrainUnit(input_dim=input_dim)
      log_writer = MagicMock(spec=MetricLogger)
      monitor = SystemResourcesMonitor(
          loggers=log_writer,
          logging_interval="epoch",
      )
  
      dataloader = generate_random_dataloader(
          dataset_len, input_dim, batch_size
      )
      train(
          my_unit,
          dataloader,
          max_epochs=max_epochs,
          callbacks=[monitor],
      )
      self.assertEqual(log_writer.log_dict.call_count, 2)
  
file_path: tnt/tests/framework/callbacks/test_system_resources_monitor.py
imports: import unittest
  from unittest.mock import MagicMock
  from torchtnt.framework._test_utils import DummyTrainUnit, generate_random_dataloader
  from torchtnt.framework.callbacks.system_resources_monitor import SystemResourcesMonitor
  from torchtnt.framework.train import train
  from torchtnt.utils.loggers.logger import MetricLogger
label_desc: Use image node_id 1 for calling the SystemResourcesMonitorTest obj's underlying member method code with example usage: obj.test_system_resources_monitor_epoch() without return types