code: def _assert_valid_dec(dec_func):
      for encoded, decoded in test_data:
          res, pos = dec_func(bytearray(encoded))
          assert res == decoded, (decoded, res)
          assert pos == len(encoded), (decoded, pos)
  
file_path: kafka-python/benchmarks/varint_speed.py
imports: from __future__ import print_function
  import pyperf
  from kafka.vendor import six
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_valid_dec(dec_func) without return types