code: def print_histogram(probs, counts):
      max_count = int(max(counts))
      print("{: >8} {: >8}".format("Prob", "Count"))
      for prob, count in sorted(zip(probs, counts), reverse=True):
          width = int(round(HISTOGRAM_WIDTH * int(count) / max_count))
          print("{: >8.3f} {: >8d} {}".format(prob, count, "-" * width))
  
file_path: pyro/pyro/distributions/testing/gof.py
imports: import math
  import warnings
  import torch
  from .special import chi2sf
label_desc: Use image node_id 1 for calling a global function with example usage: print_histogram(probs, counts) without return types