def _login_user(self, user_id):
        user = User.objects.get(pk=user_id)
        user.backend = 'reviewboard.accounts.backends.StandardAuthBackend'
        engine = import_module(settings.SESSION_ENGINE)

        # Create a fake request to store login details.
        request = HttpRequest()
        request.session = engine.SessionStore()
        login(request, user)
        request.session.save()
        return request.session.session_key
Retrieves information for an IP4 address.
dataset/ETHPy150Open reviewboard/ReviewBot/extension/reviewbotext/extension.py/ReviewBotExtension._login_user--crossover with--dataset/ETHPy150Open google/grr/grr/lib/ip_resolver.py/IPResolver.RetrieveIP4Info