code: def fetch_object(self, doc_id):
          
          try:
              return self.object_class.objects.get(pk=doc_id)
          except self.object_class.DoesNotExist:
              raise ReferenceNotFoundError
docs: Fetch the document by its PK.