code: def _warn_on_wrong_param_type(self, param_name, param_value):
      if not isinstance(param_value, self.expected_type):
          raise TypeError(
              f"{param_value} is not an instance of {self.expected_type}"
          )
  
imports: import bz2
  import json
  from logging import getLogger
  import luigi
  from luigi import task_register
  import gokart
label_desc: Use image node_id 6 for calling the TaskInstanceParameter obj's underlying member method code with example usage: obj._warn_on_wrong_param_type(param_name, param_value) without return types