def is_polymorphic_type(t):
    if isinstance(t, s_types.Collection):
        return any((is_polymorphic_type(st) for st in t.get_subtypes()))
    else:
        return (t.name == 'std::any')
def is_polymorphic_type(t):
    if isinstance(t, s_types.Collection):
        return any((is_polymorphic_type(st) for st in t.get_subtypes()))
    else:
        return (t.name == 'std::any')