code: def _accept_device_cpu(func):
      @wraps(func)
      def wrapped_func(*args, **kwargs):
          _check_device_cpu(kwargs.pop("device", None))
          return func(*args, **kwargs)
  
      return wrapped_func
  
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 8 for calling a global function with example usage: _accept_device_cpu(func) and returns: wrapped_func, func