code: def build_lr_scheduler(lr_config, epochs, step_each_epoch):
      from . import learning_rate
  
      lr_config.update(
          {"epochs": epochs, "step_each_epoch": step_each_epoch}
      )
      lr_name = lr_config.pop("name", "Const")
      lr = getattr(learning_rate, lr_name)(**lr_config)()
      return lr
  
file_path: PaddleOCR/ppocr/optimizer/__init__.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import copy
  import paddle
label_desc: Use image node_id 1 for calling a global function with example usage: build_lr_scheduler(lr_config, epochs, step_each_epoch) and returns: lr