function getLabel(node) {
  if (node.parent.type === 'LabeledStatement') {
    return node.parent.label.name;
  }
  return null;
}
Gets the label if the parent node of a given node is a LabeledStatement.
@param {ASTNode} node A node to get.
@returns {string|null} The label or `null`.