code: def treat_path(path: str) -> Path:
      """Treat bazel paths to filesystem paths"""
      path = path[2:].replace(":", "/")
      return Path(path)
  
file_path: ray/ci/lint/pytest_checker.py
imports: import json
  import re
  import sys
  from pathlib import Path
label_desc: Use image node_id 3 for calling a global function with example usage: treat_path(path) and returns: Path