code: def get_namedtuple_factory(cls, field_mappings, name="Record"):
      
      ntup = cls.get_namedtuple(field_mappings, name)
      return lambda data: ntup(**data)
docs: Gets a method that will convert a dictionary to a namedtuple, as defined by
      get_namedtuple(field_mappings).