In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

Sentence: 'a couple of men on a court holding tennis rackets'. Reverse all words of length '2' in the given sentence.
a couple fo men no a court holding tennis rackets

Sentence: 'the three trains are stopped on the railroad tracks'. Reverse all words of length '6' in the given sentence.
the three sniart are stopped on the railroad skcart

Sentence: 'a boy attempts to catch a frisbee over his head'. Reverse all words of length '8' in the given sentence.

a boy stpmetta to catch a frisbee over his head