code: def _convert_np_output(func):
      @functools.wraps(func)
      def _wrapped(*args, **kwargs):
          out = func(*args, **kwargs)
  
          if type(out) is np.ndarray:
              return gs.from_numpy(out)
  
          return out
  
      return _wrapped
  
file_path: geomstats/geomstats/numerics/_common.py
imports: import functools
  from types import MethodType
  import numpy
  from scipy.interpolate import PPoly
  import geomstats.backend
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_np_output(func) and returns: _wrapped, out, gs