harbor run -t openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0347harbor download openthoughts/tasktrove-exp-rpt-stack-pytest-v2-stack-pytest-0347Task: Implement a small in-memory tree structure used by tests, as a Python package at /app/trio_vis/
Goal Create a self-contained Python package named trio_vis that provides a FakeNode class with specific behavior required by the pytest tests. The tests import FakeNode from trio_vis.trio_fake, so the package must expose that module and class accordingly.
What to implement
Create a Python package at /app/trio_vis with at least:
Implement FakeNode with the following interface and exact behavior expected by tests:
Class and constructor
Core operations and behavior
tree_add(self, node: "FakeNode", parent_name: str) -> None
tree_remove(self, name: str) -> None
Property tree_root with getter and setter
Helpers (internal; not part of public API)
Notes and constraints
Files and location
Note: The prompt mentions placing the implementation in /app/trio_vis.py (or as a package). To align with the tests that import trio_vis.trio_fake, this task specifies creating a package at /app/trio_vis/ with the appropriate trio_fake.py module implementing FakeNode as described.