code: def find_project_directory(start_path) -> str:
          
          start_path = os.path.realpath(start_path)
          possible_name = os.path.join(start_path, ModelConfig.PROJECT_FILE_NAME)
  
          if os.path.exists(possible_name):
              return start_path
          else:
              up_path = os.path.realpath(os.path.join(start_path, '..'))
              if os.path.realpath(start_path) == up_path:
                  raise RuntimeError(f"Couldn't find project file starting from {start_path}")
              else:
                  return ModelConfig.find_project_directory(up_path)
docs: Locate top-level project directory