code: def log_cosh(y_true, y_pred):
      y_true = ivy.astype(y_true, y_pred.dtype)
      diff = y_pred - y_true
      log_val = ivy.astype(ivy.log(2.0), diff.dtype)
      return ivy.mean(
          diff + ivy.softplus(-2.0 * diff) - log_val, axis=-1
      )
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 13 for calling a global function with example usage: log_cosh(y_true, y_pred) and returns: ivy