Rope golems are a type of golem. Rope golems have a grabbing attack that chokes. Along with straw golems, they are one of the two types of golems which do not drop anything when they are destroyed. Rope is a staple item for adventuring parties in the Dungeons & Dragons campaigns that inspired NetHack, but it's not implemented as an item in the game. (One can assume that grappling hooks include a length of rope, but it doesn't exist on its own.)
An oilskin cloak can protect against the golem's grab attack. Thus it is best to keep your distance and use ranged attacks.