async def _get_community_users(self, f, community_id: str, count: int, cursor: str | None):
        """
        Base function to retrieve community users.
        """
        response, _ = await f(community_id, count, cursor)

        items = find_dict(response, 'items_results', find_one=True)[0]
        users = []
        for item in items:
            if 'result' not in item:
                continue
            if item['result'].get('__typename') != 'User':
                continue
            users.append(CommunityMember(self, item['result']))

        next_cursor_ = find_dict(response, 'next_cursor', find_one=True)
        next_cursor = next_cursor_[0] if next_cursor_ else None

        if next_cursor is None:
            fetch_next_result = None
        else:
            fetch_next_result = partial(self._get_community_users, f, community_id, count, next_cursor)
        return Result(
            users,
            fetch_next_result,
            next_cursor
        )

        Base function to retrieve community users.
        
twikit/client/client.py