DocState GetEtDocState(DocumentId doc);

The function is intended to get the state of sample document, where: