def METHOD_NAME(self, name):
    case = self.get_value("TESTCASE")
    tnode = self.get_child("test", {"NAME": case})
    value = None
    idnode = self.get_optional_child(name, root=tnode)
    if idnode is not None:
        value = self.text(idnode)
    return value