def user_info(self, user_id, **kwargs):     # pragma: no cover
        """
        OBSOLETE. Get user info.

        :param user_id: User id
        :param kwargs:
        :return:
        """
        warnings.warn(
            'This endpoint is obsolete. Do not use.', ClientDeprecationWarning)

        params = {
            'q': 'ig_user({user_id}) {{id, username, full_name, profile_pic_url, '
                 'biography, external_url, is_private, is_verified, '
                 'media {{count}}, followed_by {{count}}, '
                 'follows {{count}} }}'.format(**{'user_id': user_id}),
        }
        user = self._make_request(self.API_URL, params=params)

        if not user.get('id'):
            raise ClientError('Not Found', 404)

        if self.auto_patch:
            user = ClientCompatPatch.user(user, drop_incompat_keys=self.drop_incompat_keys)
        return user

        OBSOLETE. Get user info.

        :param user_id: User id
        :param kwargs:
        :return:
        
instagram_web_api/client.py