code: def find_test_root(start_path: pathlib.Path) -> pathlib.Path:
      """
      Search upward in the directory tree to a maximum of three layers
      to find and return the package root (containing the 'tests' folder)
      """
      cur_path = start_path.resolve()
      max_layers = 3
      for _ in range(max_layers):
          if (cur_path / "tests" / "test_version_stable.py").exists():
              return cur_path
          else:
              cur_path = cur_path.parent.resolve()
      raise FileNotFoundError(
          f"Unable to find package root within {max_layers} upwards"
          + f"of {start_path}"
      )
  
imports: import os
  import pathlib
  import re
  import collections
  import functools
  import inspect
  import sys
  from typing import List, Union
  import torch
  from omegaconf import OmegaConf
  import sacrebleu
  from rouge_score import rouge_scorer, scoring
label_desc: Use image node_id 11 for calling a global function with example usage: find_test_root(start_path) and returns: cur_path