def METHOD_NAME(user):
    event = {
        "request": {"url": "http://example.com", "env": {"REMOTE_ADDR": "127.0.0.1"}},
        "platform": "javascript",
    }
    if user != "missing":
        event["user"] = user
    manager = EventManager(make_event(**event))
    manager.normalize()
    data = manager.get_data()
    assert data["user"]["ip_address"] == "127.0.0.1"