code: def squarew(ctx, t, amplitude=1, period=1):
      P = period
      A = amplitude
      return A * ((-1) ** ctx.floor(2 * t / P))
  
imports: from .functions import defun_wrapped
label_desc: Use image node_id 1 for calling a global function with example usage: squarew(ctx, t, amplitude, period) and returns: unknown