function isRenamedImport(node) {
	const parent = node.parent;

	return (
		(parent.type === "ImportSpecifier" &&
			parent.imported !== parent.local &&
			parent.imported === node) ||
		(parent.type === "ExportSpecifier" &&
			parent.parent.source && // re-export
			parent.local !== parent.exported &&
			parent.local === node)
	);
}
Checks whether the given node represents an imported name that is renamed in the same import/export specifier.

Examples:
import { a as b } from 'mod'; // node `a` is renamed import
export { a as b } from 'mod'; // node `a` is renamed import
@param {ASTNode} node `Identifier` node to check.
@returns {boolean} `true` if the node is a renamed import.