code: def _wrap_attr(scaling_factor, func):
      @wraps(func)
      def response(*args, **kwargs):
          res = scaling_factor * func(*args, **kwargs)
          return res
  
      return response
  
file_path: geomstats/geomstats/geometry/scalar_product_metric.py
imports: from functools import wraps
  import geomstats.backend
  import geomstats.errors
label_desc: Use image node_id 1 for calling a global function with example usage: _wrap_attr(scaling_factor, func) and returns: response, res