code: def hagrid_root() -> str:
      return os.path.abspath(str(Path(__file__).parent.parent))
  
imports: import os
  from pathlib import Path
  import site
  from typing import Optional
label_desc: Use image node_id 2 for calling a global function with example usage: hagrid_root() and returns: os