code: def infos(self, type=None, failed=False):
          
          if type is None:
              type = Info
          if failed not in ["all", False, True]:
              raise ValueError("{} is not a valid failed".format(failed))
  
          if failed == "all":
              return type.query.filter_by(network_id=self.id).all()
          else:
              return type.query.filter_by(network_id=self.id, failed=failed).all()
docs: 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`.