code: def erfi(ctx, z):
      if not z:
          return z
      z2 = ctx.square_exp_arg(z)
      v = (2 / ctx.sqrt(ctx.pi) * z) * ctx.hyp1f1((1, 2), (3, 2), z2)
      if not ctx._re(z):
          v = ctx._im(v) * ctx.j
      return v
  
imports: from .functions import defun, defun_wrapped
label_desc: Use image node_id 6 for calling a global function with example usage: erfi(ctx, z) and returns: v, z