def get_op_tensor_name(name):
    """
    Tensor name is assumed to be ``op_name + ':0'``

    :param name: an op or a tensor name
    :returns: (op_name, tensor_name)
    """
    if name.endswith(':0'):
        return name[:-2], name
    else:
        return name, name + ':0'