def get_op_var_name(name):
    if name.endswith(':0'):
        return name[:-2], name
    else:
        return name, name + ':0'
Variable name is assumed to be ``op_name + ':0'``
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/tfutils/common.py/get_op_var_name