code: def dump_credibilities(self, output):
          
          for p in self.products:
              json.dump({
                  "product_id": p.name,
                  "credibility": self.credibility(p)
              }, output)
              output.write("\n")
docs: Dump credibilities of all products.
  
          Args:
            output: a writable object.