function getIsStaticExpressionResult(code) {
  const linter = new Linter();
  const result = [];
  const testRule = {
    create(context) {
      const sourceCode = context.sourceCode || context.getSourceCode();

      return {
        'CallExpression[callee.name = target]'(node) {
          const scope = sourceCode.getScope ? sourceCode.getScope(node) : context.getScope();

          result.push(
            ...node.arguments.map((expr) =>
              isStaticExpression({
                node: expr,
                scope,
              })
            )
          );
        },
      };
    },
  };

  const linterResult = linter.verify(code, {
    plugins: {
      test: {
        rules: {
          'test-rule': testRule,
        },
      },
    },
    languageOptions: {
      sourceType: 'module',
      globals: {
        __dirname: 'readonly',
        __filename: 'readonly',
        require: 'readonly',
      },
    },
    rules: {
      'test/test-rule': 'error',
    },
  });
  deepStrictEqual(linterResult, []);

  return result;
}
Get the return value using `isStaticExpression()`.
Give `isStaticExpression()` the argument given to `target()` in the code as an expression.