def get_head_node_instance_id(cluster):
    "Return the given cluster's head node's instance ID."
    return cluster.cfn_resources.get('HeadNode')
Return the given cluster's head node's instance ID.
def get_head_node_instance_id(cluster):
    
    return cluster.cfn_resources.get('HeadNode')