code: def test_invalid_class(self):
      self.assertRaises(
          TypeError,
          lambda: gokart.ListTaskInstanceParameter(
              expected_elements_type=1
          ),
      )
  
imports: import unittest
  import luigi
  import gokart
  from gokart import ListTaskInstanceParameter, TaskInstanceParameter, TaskOnKart
label_desc: Use image node_id 2 for calling the ListTaskInstanceParameterTest obj's underlying member method code with example usage: obj.test_invalid_class() without return types