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