[1.5.x] Fixed #19605 - Removed unused url imports from doc examples.

Thanks sergzach for the suggestion.

Backport of 43f89e0ad6 from master