code: def get_by_type(self, _type):
          
          r = {}
          for k, v in self.items():
              if get_component_type(k) is _type:
                  r[k] = v
          return r
docs: Return all of the instances of :class:`ComponentType` ``_type``.