<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def docstring_with_summary(docstring, pairs, key_header, summary_type):
 """ Return a string joining the docstring with the pairs summary table. """

  return "\n".join(
    [docstring, "Summary of {}:".format(summary_type), ""] +
    summary_table(pairs, key_header) + [""]
  )