code: def check(proto_packages):
      failed = False
      for pkg in proto_packages:
          dst = runfiles_file_path(pkg)
          try:
              expected = expected_contents(pkg)
              with open(dst, "rb") as infile:
                  actual = infile.read()
          except OSError as e:
              failed = True
              print("Could not read package %s: %s" % (pkg, e))
              continue
          if expected == actual:
              print("%s OK" % dst)
          else:
              print("%s out of date" % dst)
              failed = True
      if failed:
          print(
              "To update, run //tensorboard/data/server:update_protos"
          )
          raise SystemExit(1)
  
file_path: tensorboard/tensorboard/data/server/update_protos.py
imports: import os
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: check(proto_packages) without return types