def METHOD_NAME(self, name):
    sym = self.config.syms.get(name)
    if sym and len(sym.nodes) > 0:
        return sym.nodes[0]
    choice = self.config.named_choices.get(name)
    if choice:
        return choice.nodes[0]
    raise RuntimeError('Unimplemented {}'.format(name))