code: def to_dataset(x, y_real):
      torch_x = torch.tensor(x, dtype=torch.long)
      # torch_y = torch.tensor(y, dtype=torch.float)
      torch_real_y = torch.tensor(y_real, dtype=torch.long)
      return TensorDataset(torch_x, torch_real_y)
  
imports: from __future__ import print_function, unicode_literals
  import random
  from contextlib import closing
  from multiprocessing import Pool
  import numpy
  import pandas
  import torch
  from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset, random_split
  from torchtext.legacy import data
  from tqdm import tqdm
label_desc: Use image node_id 8 for calling a global function with example usage: to_dataset(x, y_real) and returns: TensorDataset