code: def _objective_func(f, x_full, k_params, alpha, *args):
      """
      The regularized objective function
      """
      x_params = x_full[:k_params]
      x_added = x_full[k_params:]
      ## Return
      return f(x_params, *args) + (alpha * x_added).sum()
  
file_path: statsmodels/statsmodels/base/l1_slsqp.py
imports: import numpy
  from scipy.optimize import fmin_slsqp
  import statsmodels.base.l1_solvers_common
label_desc: Use image node_id 3 for calling a global function with example usage: _objective_func(f, x_full, k_params, alpha) and returns: unknown