code: def __ua_function__(method, args, kwargs):
      fn = _implemented.get(method, None)
      if fn is None:
          return NotImplemented
      if "plan" in kwargs and not _scipy_150:
          warnings.warn(
              "The 'plan' argument is supported in SciPy v1.5.0+"
          )
      return fn(*args, **kwargs)
  
imports: from numbers import Number
  import warnings
  import numpy
  import cupy
  from cupy.fft._fft import _fft, _default_fft_func, hfft, ihfft, _swap_direction
label_desc: Use image node_id 2 for calling a global function with example usage: __ua_function__(method, args, kwargs) and returns: fn, NotImplemented