def _run_gremlin_insert(client: NeptuneClient, g: GraphTraversalSource) -> bool:
    translator = Translator('g')
    s = translator.translate(g.bytecode)
    s = s.replace('Cardinality.', '')
    _logger.debug(s)
    res = client.write_gremlin(s)
    return res
def _run_gremlin_insert(client: NeptuneClient, g: GraphTraversalSource) -> bool:
    translator = Translator('g')
    s = translator.translate(g.bytecode)
    s = s.replace('Cardinality.', )
    _logger.debug(s)
    res = client.write_gremlin(s)
    return res