@staticmethod
def index(ctx, node, output_str):
    indices = ''
    for (i, index) in enumerate(node.node_config('index')):
        if isinstance(index, Tensor):
            symbol = ctx.get_output_tensor_name(index)
        elif (index is None):
            symbol = ':'
        if (i > 0):
            indices += (',' + symbol)
        else:
            indices = symbol
    input = node.node_config('input')
    input_tensor = ctx.get_output_tensor_name(input)
    return '{output} = {input_tensor}[{symbols}]'.format(output=output_str, input_tensor=input_tensor, symbols=indices)
@staticmethod
def index(ctx, node, output_str):
    indices = 
    for (i, index) in enumerate(node.node_config('index')):
        if isinstance(index, Tensor):
            symbol = ctx.get_output_tensor_name(index)
        elif (index is None):
            symbol = ':'
        if (i > 0):
            indices += (',' + symbol)
        else:
            indices = symbol
    input = node.node_config('input')
    input_tensor = ctx.get_output_tensor_name(input)
    return '{output} = {input_tensor}[{symbols}]'.format(output=output_str, input_tensor=input_tensor, symbols=indices)