def METHOD_NAME(prog: Program, path: Path) -> Object:
    """
    Look up a cgroup from its default hierarchy path .
    :param path: Path name.
    """
    obj = kernfs_walk(prog["cgrp_dfl_root"].cgrp.kn, path)
    if obj:
        obj = obj.priv
    return cast("struct cgroup *", obj)