code: def get_config_repr(config):
      config_str = f'Model: {config["class"]}\n'
      for pname, param in config["params"].items():
          value = param["value"]
          if param["type"] == "class":
              value = value.split(".")[-1]
          param_str = f"{pname:<22} = {str(value):<12}"
          if not param["specified"]:
              param_str += " (default)"
          config_str += param_str + "\n"
      return config_str
  
file_path: PaddleSeg/EISeg/eiseg/util/serialization.py
imports: from functools import wraps
  from copy import deepcopy
  import inspect
  import paddle.nn
label_desc: Use image node_id 3 for calling a global function with example usage: get_config_repr(config) and returns: config_str