class_docstr: Accessor to ``sklearn.linear_model``.
code: def _enet_path_wraps(self, func, *args, **kwargs):
      data = self._data
      target = self._target
      return_models = kwargs.get("return_models", False)
      if return_models:
          models = func(data.values, y=target.values, *args, **kwargs)
          return models
      else:
          alphas, coefs, dual_gaps = func(
              data.values, y=target.values, *args, **kwargs
          )
          coefs = self._constructor(coefs, index=data.columns)
          return alphas, coefs, dual_gaps
  
file_path: pandas-ml/pandas_ml/skaccessors/linear_model.py
imports: from pandas_ml.core.accessor import _AccessorMethods, _attach_methods, _wrap_data_target_func
label_desc: Use image node_id 2 for calling the LinearModelMethods obj's underlying member method code with example usage: obj._enet_path_wraps(func) and returns: models, alphas,  coefs,  dual_gaps