code: def get_component_by_type(
      self, component_type
  ) -> Union[Component, None]:
      for component in self.components:
          if isinstance(component, component_type):
              return component
  
imports: from icevision.imports import *
  from icevision.core import tasks
label_desc: Use image node_id 4 for calling the Composite obj's underlying member method code with example usage: obj.get_component_by_type(component_type) and returns: component