def METHOD_NAME(g, ct_type, entity_type, lbl, *props, sync=False):
    args = ["GRAPH.CONSTRAINT", "CREATE", g.name, ct_type, entity_type, lbl, "PROPERTIES", len(props)]
    args.extend(props)
    res = g.execute_command(*args)
    if sync:
        wait_on_constraint(g, ct_type, entity_type, lbl, *props)
    return res