def __init__(self, *traits, **metadata):
default_value = metadata.pop('<STR_LIT>', None)<EOL>allow_none = metadata.pop('<STR_LIT>', True)<EOL>istrait = lambda t: isinstance(t, type) and issubclass(t, TraitType)<EOL>if len(traits) == <NUM_LIT:1> and default_value is None and not istrait(traits[<NUM_LIT:0>]):<EOL><INDENT>default_value = traits[<NUM_LIT:0>]<EOL>traits = ()<EOL><DEDENT>if default_value is None:<EOL><INDENT>args = ()<EOL><DEDENT>elif isinstance(default_value, self._valid_defaults):<EOL><INDENT>args = (default_value,)<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>' %(self.__class__.__name__, default_value))<EOL><DEDENT>self._traits = []<EOL>for trait in traits:<EOL><INDENT>t = trait()<EOL>t.name = '<STR_LIT>'<EOL>self._traits.append(t)<EOL><DEDENT>if self._traits and default_value is None:<EOL><INDENT>args = None<EOL><DEDENT>super(Container,self).__init__(klass=self.klass, args=args,<EOL>allow_none=allow_none, **metadata)<EOL>
Tuple(*traits, default_value=None, allow_none=True, **medatata)

        Create a tuple from a list, set, or tuple.

        Create a fixed-type tuple with Traits:

        ``t = Tuple(Int, Str, CStr)``

        would be length 3, with Int,Str,CStr for each element.

        If only one arg is given and it is not a Trait, it is taken as
        default_value:

        ``t = Tuple((1,2,3))``

        Otherwise, ``default_value`` *must* be specified by keyword.

        Parameters
        ----------

        *traits : TraitTypes [ optional ]
            the tsype for restricting the contents of the Tuple.  If unspecified,
            types are not checked. If specified, then each positional argument
            corresponds to an element of the tuple.  Tuples defined with traits
            are of fixed length.

        default_value : SequenceType [ optional ]
            The default value for the Tuple.  Must be list/tuple/set, and
            will be cast to a tuple. If `traits` are specified, the
            `default_value` must conform to the shape and type they specify.

        allow_none : Bool [ default True ]
            Whether to allow the value to be None

        **metadata : any
            further keys for extensions to the Trait (e.g. config)