def search_users(self, query, **kwargs):
        """
        Search users

        :param query: Search string
        :return:
        """
        query_params = {
            'q': query,
            'timezone_offset': self.timezone_offset,
            'count': 50,
        }
        query_params.update(kwargs)
        res = self._call_api('users/search/', query=query_params)
        if self.auto_patch:
            [ClientCompatPatch.list_user(u, drop_incompat_keys=self.drop_incompat_keys)
             for u in res.get('users', [])]
        return res

        Search users

        :param query: Search string
        :return:
        
instagram_private_api/endpoints/users.py