def _Simplify(self, t):
    if all((isinstance(p, pytd.AnythingType) for p in t.parameters)):
        return t.base_type
    else:
        return t
def _Simplify(self, t):
    if all((isinstance(p, pytd.AnythingType) for p in t.parameters)):
        return t.base_type
    else:
        return t