code: def expected_contents(pkg):
      src = os.path.join(
          _BAZEL_DIR, "genproto", pkg_basename(pkg, ".rs")
      )
      with open(src, "rb") as infile:
          contents = infile.read()
      if pkg != _FILE_DESCRIPTOR_SET:
          contents = _RUST_LICENSE.encode("utf-8") + contents
      return contents
  
file_path: tensorboard/tensorboard/data/server/update_protos.py
imports: import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: expected_contents(pkg) and returns: contents