code: def _track(self, stat: Stat):
      # Store system stats
      for resource, usage in stat.system.items():
          self._tracker()(
              usage,
              name="{}{}".format(AIM_RESOURCE_METRIC_PREFIX, resource),
          )
  
      # Store GPU stats
      for gpu_idx, gpu in enumerate(stat.gpus):
          for resource, usage in gpu.items():
              self._tracker()(
                  usage,
                  name="{}{}".format(
                      AIM_RESOURCE_METRIC_PREFIX, resource
                  ),
                  context={"gpu": gpu_idx},
              )
  
imports: import io
  import logging
  import re
  import sys
  import time
  import weakref
  from psutil import Process, cpu_percent
  from threading import Thread
  from typing import Union
  from weakref import WeakValueDictionary
  from aim.ext.resource.configs import AIM_RESOURCE_METRIC_PREFIX
  from aim.ext.resource.log import LogLine
  from aim.ext.resource.stat import Stat
label_desc: Use image node_id 9 for calling the ResourceTracker obj's underlying member method code with example usage: obj._track(stat) without return types