code: def penalize_nonzero(weights, eagerness=1.0, acceptance=1.0):
      cliff = 1.0 / (np.e * eagerness)
      return torch.log(
          cliff + acceptance * torch.abs(weights)
      ) - np.log(cliff)
  
file_path: neural_prophet/neuralprophet/utils_torch.py
imports: import inspect
  import logging
  import numpy
  import pytorch_lightning
  import torch
  import torch.nn
  from captum.attr import Saliency
label_desc: Use image node_id 2 for calling a global function with example usage: penalize_nonzero(weights, eagerness, acceptance) and returns: unknown