def METHOD_NAME(self, key: str, search_value: Any) -> Machine:
    try:
        machine_dict = self._machines_collection.find_one(
            {key: search_value}, {MONGO_OBJECT_ID_KEY: False}
        )
    except Exception as err:
        raise RetrievalError(f'Error retrieving machine with "{key} == {search_value}": {err}')
    if machine_dict is None:
        raise UnknownRecordError(f'Unknown machine with "{key} == {search_value}"')
    machine_dict = mongo_dot_decoder(machine_dict)
    return Machine(**machine_dict)