code: def format_py_params_for_value(py_params):
      mapping = {
          "init": "to_bigdl_init(init)",
          "activation": "get_activation_by_name(activation) if activation else None",
          "W_regularizer": "to_bigdl_reg(W_regularizer)",
          "b_regularizer": "to_bigdl_reg(b_regularizer)",
          "input_shape": "list(input_shape) if input_shape else None",
      }
      py_param_names = [p.split("=")[0].strip() for p in py_params]
      return append_semi(
          [
              12 * " " + mapping.get(name, name)
              for name in py_param_names
          ]
      )
  
file_path: analytics-zoo/pyzoo/dev/auto_gen.py
imports: import re
label_desc: Use image node_id 9 for calling a global function with example usage: format_py_params_for_value(py_params) and returns: append_semi