def METHOD_NAME(matchobj):
    prefix = matchobj.group(1)
    name = matchobj.group(2)
    decoder = DECODERS.get(name)
    method = DECODER_METHODS.get(name)
    if decoder:
      return f'{prefix}{ref(name)}'
    elif method:
      return f'{prefix}{methodref(name)}'
    else:
      # Return the fully matched text (aka don't replace)
      return matchobj.group(0)