code: def get_check_global_params(mode):
      check_params = [
          "use_gpu",
          "max_text_length",
          "image_shape",
          "image_shape",
          "character_type",
          "loss_type",
      ]
      if mode == "train_eval":
          check_params = check_params + [
              "train_batch_size_per_card",
              "test_batch_size_per_card",
          ]
      elif mode == "test":
          check_params = check_params + ["test_batch_size_per_card"]
      return check_params
  
imports: import logging
  import os
  import imghdr
  import cv2
  import random
  import numpy
  import paddle
  import importlib.util
  import sys
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: get_check_global_params(mode) and returns: check_params