code: def agm(ctx, a, b=1):
      if b == 1:
          return ctx.agm1(a)
      a = ctx.convert(a)
      b = ctx.convert(b)
      return ctx._agm(a, b)
  
imports: from ..libmp.backend import xrange
  import math
  import cmath
label_desc: Use image node_id 17 for calling a global function with example usage: agm(ctx, a, b) and returns: ctx, ctx