def METHOD_NAME(self, nodes: list[tuple[int, int, int]]) -> str:
    strs = []
    for node in nodes:
        start, stop, step = node
        if step == 1:
            if start == stop:
                strs.append(f'{start:d}')
            else:
                strs.append(f'{start:d}:{stop:d}')
        else:
            strs.append(f'{start:d}:{stop:d}:{step:d}')
    nodes_str = ','.join(strs)
    return nodes_str