def validate_data_path()

in evaluate.py [0:0]


def validate_data_path(path: str) -> str:
    """Validate and normalize a data directory path."""
    if not path:
        raise ValueError("Data directory path cannot be empty")

    # Convert to absolute path and normalize separators
    abs_path = os.path.abspath(os.path.expanduser(path))

    # Check if path exists for required paths
    if not os.path.exists(abs_path):
        raise FileNotFoundError(f"Data directory does not exist: {abs_path}")

    # Check if path is a directory
    if not os.path.isdir(abs_path):
        raise ValueError(f"Data directory is not a directory: {abs_path}")

    return abs_path