code: def _check_device_cpu(device):  # noqa
      if device not in {"cpu", None}:
          raise ValueError(f"Unsupported device for NumPy: {device!r}")
  
imports: import math
  from functools import wraps
  import numpy
  import scipy.special
  from .._config import get_config
  from .fixes import parse_version
label_desc: Use image node_id 7 for calling a global function with example usage: _check_device_cpu(device) without return types