code: def _repl_single_digit(m):
      m1 = m.group(1)
      m2 = consts.DIRECT_SINGLE_NUMS[m.group(2).lower()]
      return f"{m1}<num>{m2}"
  
imports: import re
  from .None import consts
label_desc: Use image node_id 1 for calling a global function with example usage: _repl_single_digit(m) and returns: m1, str, m2