code: def _extract_tar_file(
      tar: tarfile.TarFile, f: tarfile.TarInfo, path: Path
  ):
      if not path.parent.exists():
          path.parent.mkdir(parents=True)
  
      with tar.extractfile(f) as ef:
          with open(str(path), "wb") as o:
              while True:
                  r = ef.read(_TAR_BUFFER_SIZE)
                  if r:
                      o.write(r)
                  else:
                      break
  
imports: import tarfile
  from pathlib import Path
  from labml import monit, logger
  from labml.logger import Text
label_desc: Use image node_id 2 for calling a global function with example usage: _extract_tar_file(tar, f, path) without return types