harbor run -t openthoughts/tasktrove-exp-flat25-speed-bonus-v2-5k-speed-0078harbor download openthoughts/tasktrove-exp-flat25-speed-bonus-v2-5k-speed-0078Task: Implement the subtraction utilities used by the tests
Goal Create a small, self-contained utilities module virtool/subtractions/utils.py that provides four functions to manage subtraction file paths and file types, and to fetch subtraction file metadata from a PostgreSQL database. The implementations must align with the expectations exercised by the provided tests.
Required functionality
Implementation guidance
Deliverable Provide the virtool/subtractions/utils.py module implementing the four functions with the described behavior and robust handling of edge cases.
BONUS: Complete this task as quickly as possible. Faster solutions are preferred.