code: def format_yaml_dict(yamldict, type_prefix):
      """
      Helper function for format the YAML model config into
      the proper format for object and layer initialization
  
      Arguments:
          yamldict (dict): dictionary with model parameters
  
          type_prefix (str): module path for this object
  
      Returns:
          dict : formatted dict
      """
      yamldict["type"] = type_prefix + yamldict["type"]
      return yamldict
  
file_path: neon/neon/util/yaml_parse.py
imports: from copy import deepcopy
  import numpy
  import yaml
  from neon import NervanaObject
  from neon.layers import GeneralizedCost
  from neon.models import Model
  import neon.optimizers
  from neon.layers.container import Sequential
label_desc: Use image node_id 1 for calling a global function with example usage: format_yaml_dict(yamldict, type_prefix) and returns: yamldict