def getSubtag(self, name=None):
        """determine whether current tag contains other tags, and returns
        the tag with a matching name (if name is given) or None (if not)"""
        if 'Icontain' in self.tag:
            for subtag in self.tag['Icontain']:
                if subtag.name == name: return(subtag)
        return(None)
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py/XMLstruct.getSubtag/original