def _get_mk_href_tag(self,  img_tags_list):
        ''' The function gets img tag list with mk picture in it and return the MK link TAG list
        '''
                
        a_tag_list = []
        #we got all the images that are not in gray so now we need to find the id of the member we do that
        #by finding the img 'td' parent and extracting the id value from it
        for img_tag in img_tags_list :            
            td_tag = img_tag.findParent()
            
            #sanity check
            if(td_tag.name .lower() != 'td'):
                raise Exception("Img MK parent expected to by 'td' tag got %s tag instead" % td_tag.name)
        
            a_tag_list.append(td_tag.find('a'))
            
        return a_tag_list
dataset/ETHPy150Open ofri/Open-Knesset/presence/present_list.py/KnessetPresenceParser._get_mk_href_tag/original