def get_creator_node_id(local_node_id, response):
    """Returns the node ID of the node that submitted the given create request"""
    if response.directionality_flag == 1:
        return response.remote_node_id
    else:
        return local_node_id