code: def print_row_failures(failing_items, verbose=False, outfile_name=None):
      
      if outfile_name:
          outfile = open(outfile_name, "w")
          outfile.write("\t".join(["name", "row_number", "problem_type",
                                   "problem_col", "error_message"]))
          outfile.write("\n")
      else:
          outfile = None
      for ind, row in failing_items.iterrows():
          issues = row['issues']
          string = "{:10}  |  row number: {}".format(ind, str(row["num"]))
          first_string = "\t".join([str(ind), str(row["num"])])
          if verbose:
              print(first_string)
          #if outfile:
          #    ofile.write("{}\n".format(string))
          for key, issue in list(issues.items()):
              issue_type, issue_col = extract_col_name(key)
              string = "{:10}  |  {:10}  |  {}".format(issue_type, issue_col, issue)
              string = "\t".join([issue_type, issue_col, issue])
              if verbose:
                  print(string)
              if outfile:
                  outfile.write(first_string + "\t" + string + "\n")
      if outfile:
          outfile.close()
docs: Take output from get_row_failures (DataFrame), and output it to
      stdout, an outfile, or both.