code: def small_numeral(n, base=10, digits=stddigits):
      """Return the string numeral of a positive integer in an arbitrary
      base. Most efficient for small input."""
      if base == 10:
          return str(n)
      digs = []
      while n:
          n, digit = divmod(n, base)
          digs.append(digits[digit])
      return "".join(digs[::-1])
  
imports: import math
  from bisect import bisect
  from .backend import xrange
  from .backend import BACKEND, gmpy, sage, sage_utils, MPZ, MPZ_ONE, MPZ_ZERO
label_desc: Use image node_id 9 for calling a global function with example usage: small_numeral(n, base, digits) and returns: str, str