code: def merge_configs(
      self,
  ):
      # deafult cfg
      backup_argv = copy.deepcopy(sys.argv)
      sys.argv = sys.argv[:1]
      cfg = parse_args()
  
      update_cfg_map = vars(read_params())
  
      for key in update_cfg_map:
          cfg.__setattr__(key, update_cfg_map[key])
  
      sys.argv = copy.deepcopy(backup_argv)
      return cfg
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import copy
  import paddlehub
  from paddlehub.common.logger import logger
  from paddlehub.module.module import moduleinfo, runnable, serving
  import cv2
  import paddlehub
  from tools.infer.utility import base64_to_cv2
  from tools.infer.predict_cls import TextClassifier
  from tools.infer.utility import parse_args
  from deploy.hubserving.ocr_cls.params import read_params
label_desc: Use image node_id 2 for calling the OCRCls obj's underlying member method code with example usage: obj.merge_configs() and returns: cfg