<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def get_instance(self, resource_id) -> ApiResource: """Gets a single instance of a pv resource :raises PvApiError when a hub problem occurs."""

        raw = await self.get_resource(resource_id)
        return self._resource_factory(self._get_to_actual_data(raw))