code: def _get_path_device(path: str):
      if path in _path_to_device:
          return _path_to_device[path]
  
      for part in psutil.disk_partitions(all=True):
          if path.startswith(part.mountpoint):
              dev_name = _path_to_device[path] = part.device.replace(
                  "/dev/", ""
              )
              return dev_name
      _path_to_device[path] = None
      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 10 for calling a global function with example usage: _get_path_device(path) and returns: None, _path_to_device, dev_name