code: def _zip_physical_disk_stats(all_last, all_cur):
      import psutil
  
      for device in psutil.disk_partitions():
          fullname = device.device
          if PLATFORM == "Windows":
              assert re.match(r"[A-Z]:\\$", fullname), fullname
              name = fullname[0]
          else:
              name = os.path.split(fullname)[1]
          dev_last = all_last.get(name)
          dev_cur = all_cur.get(name)
          if dev_last and dev_cur:
              yield name, dev_last, dev_cur
  
file_path: guildai/guild/plugins/disk.py
imports: import os
  import platform
  import re
  import sys
  import time
  from guild.plugins.summary_util import SummaryPlugin
label_desc: Use image node_id 2 for calling a global function with example usage: _zip_physical_disk_stats(all_last, all_cur) without return types