code: def contact_get_common_groups(self, contact_id):
          
          for group in self.wapi_functions.getCommonGroups(contact_id):
              yield factory_chat(group, self)
docs: Returns groups common between a user and the contact with given id.
  
          :return: Contact or Error
          :rtype: Contact