def METHOD_NAME(self, test_doc):
    if not keys_exists(test_doc, "_source", "test_details"):
        self.log.error('Cannot find the field: test_details for test id: {}!'.format(test_doc['_id']))
        return None
    return test_doc["_source"]["test_details"]