code: def net_io_usage():
      global _last_net_io_meta
  
      net_counters = psutil.net_io_counters()
      tst = time.time()
  
      send_bytes = net_counters.bytes_sent
      recv_bytes = net_counters.bytes_recv
      if _last_net_io_meta is None:
          _last_net_io_meta = (send_bytes, recv_bytes, tst)
          return None
  
      last_send_bytes, last_recv_bytes, last_time = _last_net_io_meta
      delta_time = tst - last_time
      if delta_time == 0:
          return None
  
      recv_speed = (recv_bytes - last_recv_bytes) / delta_time
      send_speed = (send_bytes - last_send_bytes) / delta_time
  
      _last_net_io_meta = (send_bytes, recv_bytes, tst)
      return recv_speed, send_speed
  
imports: import logging
  import math
  import os
  import subprocess
  import sys
  import time
  from collections import namedtuple
  from typing import List, Optional
  import psutil
  from .lib import nvutils
  from ._resource import Resource, ZeroResource
  from .utils import get_bool_environ
label_desc: Use image node_id 12 for calling a global function with example usage: net_io_usage() and returns: recv_speed,  send_speed, None, None