code: def expm1(ctx, x):
      if not x:
          return ctx.zero
      # exp(x) - 1 ~ x
      if ctx.mag(x) < -ctx.prec:
          return x + 0.5 * x**2
      # TODO: accurately eval the smaller of the real/imag parts
      return ctx.sum_accurately(lambda: iter([ctx.exp(x), -1]), 1)
  
imports: from ..libmp.backend import xrange
  import math
  import cmath
label_desc: Use image node_id 20 for calling a global function with example usage: expm1(ctx, x) and returns: ctx, ctx, unknown