def check_child_friendly(self, name):
        """
        Check if a module is a container and so can have children
        """
        name = name.split()[0]
        if name in self.container_modules:
            return
        root = Path(__file__).resolve().parent
        module_path = root / "modules"
        info = util.find_spec(name, [module_path])
        if not info:
            return
        py_mod = util.exec_module(info)
        try:
            container = py_mod.Py3status.Meta.container
        except AttributeError:
            container = False
        # delete the module
        del py_mod
        if container:
            self.container_modules.append(name)
        else:
            self.error(f"Module `{name}` cannot contain others")

        Check if a module is a container and so can have children
        
py3status/parse_config.py