code: def remove_component_by_type(self, component_type: TaskComponent):
      for component in self.components:
          if isinstance(component, component_type):
              break
      self.components.remove(component)
      self.set_task_components(self.components)
  
imports: from icevision.imports import *
  from icevision.core import tasks
label_desc: Use image node_id 4 for calling the TaskComposite obj's underlying member method code with example usage: obj.remove_component_by_type(component_type) without return types