Task: Implement a pytest fixture that exposes a minimal host-like API used by the tests.
What to implement:
Create a pytest fixture named host (placed in conftest.py) that returns an object with a method file(path).
Implement the returned object (FileInfo) such that calling host.file('/path') yields an object with the following attributes:
exists: a boolean indicating whether the path exists on the filesystem (True if os.stat succeeds, False if FileNotFoundError).
user: the owner username of the path (string). If the path exists, derive from the file's UID using pwd.getpwuid; if unknown, fall back to the numeric UID string. If the path does not exist, return None.
group: the owner group name of the path (string). If the path exists, derive from the file's GID using grp.getgrgid; if unknown, fall back to the numeric GID string. If the path does not exist, return None.
Implementation details:
Use os.stat(path) to determine existence and retrieve st_uid and st_gid (follow symlinks by default).
Use pwd and grp modules to convert UID/GID to human-readable names; on missing mappings, fall back to the numeric IDs as strings.
Do not depend on external libraries beyond the Python standard library.
Ensure that host.file('/etc/hosts') and host.file('/etc/resolv.conf') reflect real system ownership when running on a Unix-like system (tests expect owner root:root).
Acceptance criteria:
Running pytest with the provided tests passes on a typical Linux environment where /etc/hosts and /etc/resolv.conf exist and are owned by root:root.
The fixture gracefully handles non-existent paths by returning exists=False and user/group=None.
BONUS: Complete this task as quickly as possible. Faster solutions are preferred.