code: def numerize_numerals(s, ignore=None, bias=None):
      single_nums = regexify(consts.SINGLE_NUMS.keys(), ignore=ignore)
      dir_single_nums = regexify(
          consts.DIRECT_SINGLE_NUMS.keys(), ignore=ignore
      )
      ten_prefs = regexify(consts.TEN_PREFIXES.keys(), ignore=ignore)
      single_ords = regexify(
          consts.ORDINAL_SINGLE.keys(), ignore=ignore
      )
  
      # easy / direct replacements
      pat = re.compile(
          r"(^|\W)({0})(\s({1}))(?=$|\W)".format(
              single_nums, ten_prefs
          ),
          flags=re.IGNORECASE,
      )
      m = re.search(pat, s)
      if m is not None:
          s = re.sub(
              pat,
              lambda m: f"{m.group(1)}{m.group(2)} hundred{m.group(3)}",
              s,
          )
  
      #
      pat = re.compile(
          r"(^|\W)({0})(?=$|\W)".format(dir_single_nums),
          flags=re.IGNORECASE,
      )
      m = re.search(pat, s)
      if m is not None:
          s = re.sub(pat, _repl_single_digit, s)
  
      if bias == "ordinal":
          pat = re.compile(
              r"(^|\W)\ba\b(?=$|\W)(?! (?:{}))".format(
                  consts.ALL_ORDINALS_REGEX
              ),
              flags=re.IGNORECASE,
          )
      else:
          pat = re.compile(r"(^|\W)\ba\b(?=$|\W)", flags=re.IGNORECASE)
      m = re.search(pat, s)
      if m is not None:
          s = re.sub(pat, r"\1<num>1", s, count=1)
  
      # ten, twenty, etc
      pat = re.compile(
          r"(^|\W)({0})({1})(?=$|\W)".format(ten_prefs, single_nums),
          flags=re.IGNORECASE,
      )
      m = re.search(pat, s)
      if m is not None:
          s = re.sub(pat, _repl_ten_prefixes, s)
  
      #
      pat = re.compile(
          r"(^|\W)({0})(\s)?({1})(?=$|\W)".format(
              ten_prefs, single_ords
          ),
          flags=re.IGNORECASE,
      )
      m = re.search(pat, s)
      if m is not None:
          try:
              s = re.sub(pat, _repl_ten_prefs_single_ords, s)
          except TypeError:
              from ipdb import set_trace
  
              set_trace()  # NOQA
  
      #
      pat = re.compile(
          r"(^|\W)({})(?=$|\W)".format(ten_prefs), flags=re.IGNORECASE
      )
      m = re.search(pat, s)
      if m is not None:
          s = re.sub(pat, _repl_ten_prefs, s)
  
      return s
  
imports: import re
  from .None import consts
label_desc: Use image node_id 9 for calling a global function with example usage: numerize_numerals(s, ignore, bias) and returns: s