code: def trans(dataset):
      ret = []
      for i in range(len(dataset)):
          x = dataset[i].nodes.data["x"]
          y = dataset[i].data["y"].view(-1, 1)
          edge_index = dataset[i].edges.connections
          edge_attr = dataset[i].edges.data["edge_feat"]
          data = Data(
              x=x, y=y, edge_index=edge_index, edge_attr=edge_attr
          )
          ret.append(data)
      return ret
  
file_path: AutoGL/examples/glfogb.py
imports: from torch_geometric.data import DataLoader
  import torch.optim
  from tqdm import tqdm
  from ogb.graphproppred import Evaluator
  import random
  import torch
  import numpy
  from autogl.datasets import build_dataset_from_name
  from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
  from ogb_gnn import GNN
  from autogl.backend import DependentBackend
  from torch_geometric.data import Data
label_desc: Use image node_id 3 for calling a global function with example usage: trans(dataset) and returns: ret