code: def primepi(ctx, x):
      x = int(x)
      if x < 2:
          return 0
      return len(ctx.list_primes(x))
  
imports: from __future__ import print_function
  from ..libmp.backend import xrange
  from .functions import defun, defun_wrapped, defun_static
label_desc: Use image node_id 8 for calling a global function with example usage: primepi(ctx, x) and returns: len, int