def __init__(self, type=None, content=None, name=None):
        if type is not None:
            assert type >= 256, type
        if content is not None:
            assert not isinstance(content, basestring), repr(content)
            content = list(content)
            for i, item in enumerate(content):
                assert isinstance(item, BasePattern), (i, item)
                if isinstance(item, WildcardPattern):
                    self.wildcards = True
        self.type = type
        self.content = content
        self.name = name
Validates that the value is a valid tuple.
dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/lib2to3/pytree.py/NodePattern.__init__--crossover with--dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseTuple.validate