code: def chdir_to_repo_root():
      toplevel = subprocess.check_output(
          ["git", "rev-parse", "--show-toplevel"]
      )
      toplevel = toplevel[:-1]  # trim trailing LF
      os.chdir(toplevel)
  
file_path: tensorboard/tensorboard/tools/whitespace_hygiene_test.py
imports: import dataclasses
  import os
  import subprocess
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: chdir_to_repo_root() without return types