code: def unit_triangle(ctx, t, amplitude=1):
      A = amplitude
      if t <= -1 or t >= 1:
          return ctx.zero
      return A * (-ctx.fabs(t) + 1)
  
imports: from .functions import defun_wrapped
label_desc: Use image node_id 4 for calling a global function with example usage: unit_triangle(ctx, t, amplitude) and returns: unknown, ctx