class_docstr: Background process for tracking resource usage
class_docstr_tok: ["Background","process","for","tracking","resource","usage"]
code: def __init__(self, dt=1):
      super().__init__()
      self.daemon = True
      self.dt = dt
      self.parent_pid = current_process().pid
      self.parent_conn, self.child_conn = Pipe()
  
imports: from __future__ import annotations
  from collections import namedtuple
  from itertools import starmap
  from multiprocessing import Pipe, Process, current_process
  from time import sleep
  from timeit import default_timer
  from dask.callbacks import Callback
  from dask.utils import import_required
label_desc: Use image node_id 1 to create a new _Tracker object from inherited base classes: Process with example: obj = _Tracker(dt)