def _build_gremlin_update(g: GraphTraversalSource, row: Any, use_header_cardinality: bool) -> GraphTraversalSource:
    g = g.V(str(row['~id']))
    g = _set_properties(g, use_header_cardinality, row)
    return g
def _build_gremlin_update(g: GraphTraversalSource, row: Any, use_header_cardinality: bool) -> GraphTraversalSource:
    g = g.V(str(row['~id']))
    g = _set_properties(g, use_header_cardinality, row)
    return g