[1.5.x] Fixed #19690 - Removed unused import in doc examples.

Backport of c6560e4843 from master