code: def _assert_valid_enc(enc_func):
      for encoded, decoded in test_data:
          assert enc_func(decoded) == encoded, decoded
  
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 1 for calling a global function with example usage: _assert_valid_enc(enc_func) without return types