isAssertFunction = (specifier, moduleName) =>
	// `import assert from 'node:assert';`
	// `import assert from 'node:assert/strict';`
	specifier.type === 'ImportDefaultSpecifier'
	// `import {default as assert} from 'node:assert';`
	// `import {default as assert} from 'node:assert/strict';`
	|| (
		specifier.type === 'ImportSpecifier'
		&& specifier.imported.name === 'default'
	)
	// `import {strict as assert} from 'node:assert';`
	|| (
		moduleName === 'assert'
		&& specifier.type === 'ImportSpecifier'
		&& specifier.imported.name === 'strict'
	)
Check if a specifier is `assert` function.

@param {import('estree').ImportSpecifier | import('estree').ImportDefaultSpecifier} specifier
@param {string} moduleName