<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main(argv=None):
 """Takes the path to a directory with reports and renders success fail plots."""

  report_paths = argv[1:]

  fail_names = FLAGS.fail_names.split(',')

  for report_path in report_paths:
    plot_report_from_path(report_path, label=report_path, fail_names=fail_names)
  pyplot.legend()

  pyplot.xlim(-.01, 1.)
  pyplot.ylim(0., 1.)

  pyplot.show()