code: def softshrink(
      x,
      /,
      *,
      threshold=0.5,
      name=None,
  ):
      low = ivy.where(ivy.less(x, -threshold), ivy.add(x, threshold), 0)
      up = ivy.where(
          ivy.greater(x, threshold), ivy.subtract(x, threshold), 0
      )
      add = ivy.add(low, up)
      return ivy.astype(add, x.dtype)
  
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
  from ivy.functional.frontends.paddle.tensor.math import tanh
label_desc: Use image node_id 23 for calling a global function with example usage: softshrink() and returns: ivy