code: def _psutil_caller(method_name, default=_empty_namedtuple):
      """
      Return a function calling the given psutil *method_name*,
      or returning *default* if psutil fails.
      """
      meth = getattr(psutil, method_name)
  
      @wraps(meth)
      def wrapper():  # pragma: no cover
          try:
              return meth()
          except RuntimeError:
              # This can happen on some systems (e.g. no physical disk in worker)
              return default()
  
      return wrapper
  
imports: from __future__ import annotations
  import asyncio
  import collections
  import threading
  import time
  from collections.abc import Callable, Hashable, Iterator
  from contextlib import contextmanager
  from contextvars import ContextVar
  from dataclasses import dataclass
  from functools import wraps
  from math import nan
  from typing import Literal
  import psutil
  from distributed.compatibility import WINDOWS
label_desc: Use image node_id 1 for calling a global function with example usage: _psutil_caller(method_name, default) and returns: wrapper, meth, default