code: def _wrap_data_plot(func, func_name):
      """
      Wrapper for plotting with data
      """
  
      def f(self, *args, **kwargs):
          return func(data=self._df, *args, **kwargs)
  
      f.__doc__ = (
          """
          Call ``%s`` using automatic mapping.
  
          - ``data``: ``ModelFrame``
          """
          % func_name
      )
      return f
  
imports: import pandas
  from pandas_ml.core.accessor import _AccessorMethods, _attach_methods
label_desc: Use image node_id 3 for calling a global function with example usage: _wrap_data_plot(func, func_name) and returns: f, func