code: def _wrap_data_func(func, func_name):
      """
      Wrapper to call func with data values
      """
  
      def f(self, *args, **kwargs):
          data = self._data
          result = func(data.values, *args, **kwargs)
          return result
  
      f.__doc__ = (
          """
          Call ``%s`` using automatic mapping.
  
          - ``X``: ``ModelFrame.data``
          """
          % func_name
      )
      return f
  
file_path: pandas-ml/pandas_ml/core/accessor.py
imports: import importlib
  import pandas.compat
label_desc: Use image node_id 2 for calling a global function with example usage: _wrap_data_func(func, func_name) and returns: f, result