code: def _objective_func(f, x, k_params, alpha, *args):
      """
      The regularized objective function.
      """
      from cvxopt import matrix
  
      x_arr = np.asarray(x)
      params = x_arr[:k_params].ravel()
      u = x_arr[k_params:]
      # Call the numpy version
      objective_func_arr = f(params, *args) + (alpha * u).sum()
      # Return
      return matrix(objective_func_arr)
  
imports: import numpy
  import statsmodels.base.l1_solvers_common
label_desc: Use image node_id 2 for calling a global function with example usage: _objective_func(f, x, k_params, alpha) and returns: matrix