code: def __init__(self, expected_type=None, *args, **kwargs):
      if expected_type is None:
          self.expected_type = gokart.TaskOnKart
      elif isinstance(expected_type, type):
          self.expected_type = expected_type
      else:
          raise TypeError(
              f"expected_type must be a type, not {type(expected_type)}"
          )
      super().__init__(*args, **kwargs)
  
imports: import bz2
  import json
  from logging import getLogger
  import luigi
  from luigi import task_register
  import gokart
label_desc: Use image node_id 1 to create a new TaskInstanceParameter object from inherited base classes: luigi with example: obj = TaskInstanceParameter(expected_type)