class_docstr: Class to help runing the lint and records summary
class_docstr_tok: ["Class","to","help","runing","the","lint","and","records","summary"]
docstr: Print summary of certain result map.
docstr_tok: ["Print","summary","of","certain","result","map","."]
code: def _print_summary_map(strm, result_map, ftype):
      """Print summary of certain result map."""
      if len(result_map) == 0:
          return 0
      npass = sum(1 for x in result_map.values() if len(x) == 0)
      strm.write(
          f"====={npass}/{len(result_map)} {ftype} files passed check=====\n"
      )
      for fname, emap in result_map.items():
          if len(emap) == 0:
              continue
          strm.write(
              f"{fname}: {sum(emap.values())} Errors of {len(emap)} Categories map={str(emap)}\n"
          )
      return len(result_map) - npass
  
file_path: dgl/tests/lint/lint.py
imports: from __future__ import print_function
  import argparse
  import codecs
  import os
  import re
  import sys
  import cpplint
  from cpplint import _cpplint_state
  from pylint import epylint
label_desc: Use image node_id 1 for calling the LintHelper obj's underlying member method code with example usage: obj._print_summary_map(strm, result_map, ftype) and returns: unknown, int