code: def __init__(self, config, gpu, mode):
      self.config = config
      self.gpu = gpu
      self.mode = mode
      self.net_param = self.get_load_param(gpu)
  
imports: import argparse
  import os
  import shutil
  import time
  import multiprocessing
  import yaml
  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, CustomDataset
  from loss.mseloss import Maploss_v2, Maploss_v3
  from model.craft import CRAFT
  from eval import main_eval
  from metrics.eval_det_iou import DetectionIoUEvaluator
  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, mode)