code: def _dict_to_obj(dic, name="Object"):
      """Return an object form of a dictionary."""
      return namedtuple(name, dic.keys())(*dic.values())
  
file_path: nlp-architect/nlp_architect/models/bist/mstlstm.py
imports: import random
  import time
  from collections import namedtuple
  from operator import itemgetter
  from dynet import ParameterCollection, AdamTrainer, LSTMBuilder, tanh, logistic, rectify, cmult, SimpleRNNBuilder, concatenate, np, renew_cg, esum
  from nlp_architect.data.conll import ConllEntry
  from nlp_architect.models.bist import decoder
  from nlp_architect.models.bist.utils import read_conll
label_desc: Use image node_id 1 for calling a global function with example usage: _dict_to_obj(dic, name) and returns: namedtuple