code: def get_path_device(path: str):
      for part in psutil.disk_partitions(all=True):
          if path.startswith(part.mountpoint):
              return part.device
      return None
  
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 9 for calling a global function with example usage: get_path_device(path) and returns: None, part