code: def main():
      chdir_to_repo_root()
      matches = git_grep("  *$")
      errors = [m for m in matches if m.filename not in exceptions]
      okay = True
  
      if errors:
          print("Superfluous trailing whitespace:")
          for error in errors:
              print(
                  "%s:%d:%s$"
                  % (error.filename, error.line_number, error.line)
              )
          print()
          okay = False
  
      stale_exceptions = exceptions - frozenset(
          m.filename for m in matches
      )
      if stale_exceptions:
          print(
              "Stale exceptions (no whitespace problems; prune exceptions list):"
          )
          for filename in stale_exceptions:
              print(filename)
          print()
          okay = False
  
      sys.exit(0 if okay else 1)
  
file_path: tensorboard/tensorboard/tools/whitespace_hygiene_test.py
imports: import dataclasses
  import os
  import subprocess
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types