code: def search_for(name: str, where: Path, levels: int = 0):
      while True:
          candidate = where / name
          if candidate.exists():
              return candidate
  
          if levels == 0 or where == where.parent or where is None:
              raise RuntimeError(f"Can not find {name}.")
  
          levels -= 1
          where = where.parent
  
file_path: gluonts/src/gluonts/meta/_version.py
imports: import os
  import subprocess
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: search_for(name, where, levels) and returns: candidate