code: def __init__(self, config, gpu):
      self.config = config
      self.gpu = gpu
      self.mode = None
      self.trn_loader, self.trn_sampler = self.get_trn_loader()
      self.net_param = self.get_load_param(gpu)
  
imports: import argparse
  import os
  import shutil
  import time
  import yaml
  import multiprocessing
  import numpy
  import torch
  import torch.nn
  import torch.optim
  import wandb
  from config.load_config import load_yaml, DotDict
  from data.dataset import SynthTextDataSet
  from loss.mseloss import Maploss_v2, Maploss_v3
  from model.craft import CRAFT
  from metrics.eval_det_iou import DetectionIoUEvaluator
  from eval import main_eval
  from utils.util import copyStateDict, save_parser
label_desc: Use image node_id 1 to create a new Trainer object from inherited base classes: object with example: obj = Trainer(config, gpu)