def search(self, name, max_results=None):
        if self._user_searches in name:
            return self._user_searches[name]
        query = SQ.QueryPacket(
            E.Query(
                E.Context(
                    E.QueryText(
                        'SCOPE:"People"' + name
                    ,type='STRING'),
                )
            ),
        )
        xml = SEARCH.Query(SEARCH.queryXml(etree.tostring(query)))
        results = self.opener.post_soap(SEARCH_WEBSERVICE, xml, soapaction='urn:Microsoft.Search/Query')
        results = etree.fromstring(results.find('search:QueryResult', namespaces=namespaces).text)
        account_names = []
        for result in results.xpath('.//srd:Document', namespaces=namespaces):
            link = result.xpath('srd:Action/srd:LinkUrl', namespaces=namespaces)[0].text
            account_name = parse_qs(urlparse(link).query)['accountname'][0]
            account_names.append(account_name)

        users = self.resolve_principals(account_names)
        self._user_searches[name] = users
        return users
dataset/ETHPy150Open ox-it/python-sharepoint/sharepoint/users.py/SharePointUsers.search/swapped operands of `in`