code: def test_params_with_invalid_param_type(self):
      class _DummyPipelineB(TaskOnKart):
          task_namespace = __name__
          subtask = gokart.TaskInstanceParameter(
              expected_type=_DummySubTask
          )
  
      with self.assertRaises(TypeError):
          _DummyPipelineB(subtask=_DummyInvalidSubClassTask())
  
imports: import unittest
  import luigi
  import gokart
  from gokart import ListTaskInstanceParameter, TaskInstanceParameter, TaskOnKart
label_desc: Use image node_id 6 for calling the TaskInstanceParameterTest obj's underlying member method code with example usage: obj.test_params_with_invalid_param_type() without return types