frommegatron.core.inference.utilsimportCounterclassTestInferenceUtils:deftest_counter(self):counter=Counter()r=next(counter)assertr==0,f'Counter return value should be 0 but it is {r}'assertcounter.counter==1,f'Counter should be 1 but it is {counter.counter}'counter.reset()assertcounter.counter==0,f'Counter should be 0 but it is {counter.counter}'