def METHOD_NAME(input_dir, output_dir,
                                              binary_name, threshold):
  csv_path = '%s/%s.csv' % (input_dir, binary_name)
  size_log = pd.read_csv(csv_path, index_col=False).iloc[-SIZE_HISTORY_DEPTH:]
  size_log.reset_index(drop=True, inplace=True)
  start_date = size_log.iloc[0, 0][0:10]
  end_date = size_log.iloc[-1, 0][0:10]
  fig, axs = plt.subplots(3, 2)
  fig.suptitle('Source: %s\n%s - %s' % (binary_name, start_date, end_date))
  threshold_messages = []
  for index, name in enumerate(['text', 'data', 'total']):
    err_msg_or_none = _subplot_and_detect_size_increase(
        axs, size_log, name, index, threshold)
    if err_msg_or_none is not None:
      threshold_messages.append('%s failure: %s' %
                                (binary_name, err_msg_or_none))
  fig_path = '%s/%s.png' % (output_dir, binary_name)
  fig.tight_layout()
  plt.savefig(fig_path)
  plt.clf()
  return threshold_messages