def METHOD_NAME(handle_callback, proto_class, is_base64_encoded):
    """To pass in an arbitrary handle callback into the SocketServer,
    we need to create a constructor that can create a Session object with
    appropriate handle function.
    :param handle_callback: The callback to run
    :param proto_class: The protobuf to unpack from (None if its encoded in the payload)
    :param is_base64_encoded: If sent over fom LOG(VISUALIZE) the data will be is_base64_encoded
    """
    def create_handler(*args, **keys):
        return Session(handle_callback, proto_class, is_base64_encoded, *args, **keys)
    return create_handler