code: def plot(
      results: "pd.DataFrame",
      abs_differences: "bool",
      head: "Optional[int]",
  ) -> None:
      r_ = results.iloc[1:] - results.iloc[0]
      results = r_ if abs_differences else r_ / results.iloc[0]
  
      if head is not None:
          results = results[
              results.abs()
              .max()
              .sort_values(ascending=False)
              .head(head)
              .keys()
          ]
  
      results.T.sort_index().plot.bar()
      plt.show()
  
file_path: hail/benchmark/python/benchmark_hail/visualize.py
imports: import matplotlib.pyplot
  import pandas
  from collections import defaultdict
  from .compare import load_file
  from typing import List, Optional
label_desc: Use image node_id 2 for calling a global function with example usage: plot(results, abs_differences, head) without return types