def METHOD_NAME(self, marker):
    children = {}
    for name in dir(self):
        options = getattr(getattr(self, name), marker, None)
        if options is not None:
            condition = options["condition"]
            try:
                if condition is None or condition(self):
                    children[name] = options
            except Exception:
                logger.exception(f"Failed checking condition for child: {name}")
    return children