def infos(self, type=None, failed=False):
if type is None:<EOL><INDENT>type = Info<EOL><DEDENT>if failed not in ["<STR_LIT:all>", False, True]:<EOL><INDENT>raise ValueError("<STR_LIT>".format(failed))<EOL><DEDENT>if failed == "<STR_LIT:all>":<EOL><INDENT>return type.query.filter_by(network_id=self.id).all()<EOL><DEDENT>else:<EOL><INDENT>return type.query.filter_by(network_id=self.id, failed=failed).all()<EOL><DEDENT>
Get infos in the network.

type specifies the type of info (defaults to Info). failed { False,
True, "all" } specifies the failed state of the infos. To get infos
from a specific node, see the infos() method in class
:class:`~dallinger.models.Node`.