code: def get_component(self, component_type):
          '''
          Gets component of component_type or returns None
          '''
          matching_components = list(filter(lambda component:
                                            isinstance(component,
                                                       component_type),
                                            self._components))
          if matching_components:
              return matching_components[0]
          else:
              return Nonf get_component(self, component_type):
          '''
          Gets component of component_type or returns None
          '''
          matching_components = list(filter(lambda component:
                                            isinstance(component,
                                                       component_type),
                                            self._components))
          if matching_components:
              return matching_components[0]
          else:
              return None
docs: Gets component of component_type or returns None