code: def stirling1(ctx, n, k, exact=False):
      v = ctx._stirling1(int(n), int(k))
      if exact:
          return int(v)
      else:
          return ctx.mpf(v)
  
imports: from ..libmp.backend import xrange
  import math
  import cmath
label_desc: Use image node_id 47 for calling a global function with example usage: stirling1(ctx, n, k, exact) and returns: int, ctx