code: def get_dict_w_id2nts(ids, id2nts, flds, dflt_null=""):
      
      assert len(ids) == len(set(ids)), "NOT ALL IDs ARE UNIQUE: {IDs}".format(IDs=ids)
      assert len(flds) == len(set(flds)), "DUPLICATE FIELDS: {IDs}".format(
          IDs=cx.Counter(flds).most_common())
      usr_id_nt = []
      # 1. Instantiate namedtuple object
      ntobj = cx.namedtuple("Nt", " ".join(flds))
      # 2. Fill dict with namedtuple objects for desired ids
      for item_id in ids:
          # 2a. Combine various namedtuples into a single namedtuple
          nts = [id2nt.get(item_id) for id2nt in id2nts]
          vals = _combine_nt_vals(nts, flds, dflt_null)
          usr_id_nt.append((item_id, ntobj._make(vals)))
      return cx.OrderedDict(usr_id_nt)
docs: Return a new dict of namedtuples by combining "dicts" of namedtuples or objects.