def METHOD_NAME(op_type, index, row):
    return {
        '_op_type': op_type,
        '_index': index,
        '_type': ES_TYPE,
        '_id': base64.b64encode(hashlib.sha256(row['idv']).digest())[:20],
        'doc': row
    }