code: def im(ctx, x):
      x = ctx.convert(x)
      if hasattr(
          x, "imag"
      ):  # py2.5 doesn't have .real/.imag for all numbers
          return x.imag
      return ctx.zero
  
imports: from ..libmp.backend import xrange
  import math
  import cmath
label_desc: Use image node_id 29 for calling a global function with example usage: im(ctx, x) and returns: ctx, x