code: def collect_from_bundle(self, bundle: Bundle) -> Dict[str, Any]:
          
          members = {}
          hierarchy = ([bundle] if not self.discover_from_bundle_superclasses
                       else bundle._iter_class_hierarchy())
          for bundle in hierarchy:
              module = self.import_bundle_module(bundle)
              if not module:
                  continue
              members.update(self._collect_from_package(module))
          return members
docs: Collect objects where :meth:`type_check` returns ``True`` from bundles.
          Bundle subclasses can override objects discovered in superclass bundles.