code: def test_typed_tuple_bad_default():
      class TestCase(HasTraits):
          value = TypedTuple(
              trait=Int(), default_value=(1, 2, "foobar")
          )
  
      with pytest.raises(TraitError):
          obj = TestCase()
          a = obj.value
  
imports: import array
  import datetime
  import pytest
  from unittest import TestCase
  from traitlets import HasTraits, Int, TraitError
  from traitlets.tests.test_traitlets import TraitTestBase
  from ipywidgets import Color, NumberFormat
  from ipywidgets.widgets.widget import _remove_buffers, _put_buffers
  from ipywidgets.widgets.trait_types import date_serialization, TypedTuple
label_desc: Use image node_id 6 for calling a global function with example usage: test_typed_tuple_bad_default() without return types