docstr: Initializing the trainer with the input arguments
docstr_tok: ["Initializing","the","trainer","with","the","input","arguments"]
code: def __init__(self, args):
      """Initializing the trainer with the input arguments"""
      self.args = args
      self.dataset = LineDataset(
          net_file=args.data_file,
          batch_size=args.batch_size,
          negative=args.negative,
          gpus=args.gpus,
          fast_neg=args.fast_neg,
          ogbl_name=args.ogbl_name,
          load_from_ogbl=args.load_from_ogbl,
          ogbn_name=args.ogbn_name,
          load_from_ogbn=args.load_from_ogbn,
          num_samples=args.num_samples * 1000000,
      )
      self.emb_size = self.dataset.G.num_nodes()
      self.emb_model = None
  
file_path: dgl/examples/pytorch/ogb/line/line.py
imports: import argparse
  import os
  import random
  import time
  import dgl
  import numpy
  import torch
  import torch.multiprocessing
  from model import SkipGramModel
  from reading_data import LineDataset
  from torch.utils.data import DataLoader
  from utils import check_args, sum_up_params
label_desc: Use image node_id 1 to create a new LineTrainer object  with example: obj = LineTrainer(args)