code: def add_sponsor(self, type, name, **kwargs):
          
          self['sponsors'].append(dict(type=type, name=name, **kwargs))
docs: Associate a sponsor with this bill.
  
          :param type: the type of sponsorship, e.g. 'primary', 'cosponsor'
          :param name: the name of the sponsor as provided by the official source