code: def soft_threshold(A, b):
      """
      This function implement the soft-threshold operator
      Input:
          A: {numpy scalar, vector, or matrix}
          b: scalar}
      """
      res = np.zeros(A.shape)
      res[A > b] = A[A > b] - b
      res[A < -b] = A[A < -b] + b
      return res
  
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: soft_threshold(A, b) and returns: res