code: def count_stripes(
      stripe_config: StripeConfig, enable_sliding_window: bool = False
  ):
      stripe_counts = dict(
          _ffi_api.CountStripes(stripe_config, enable_sliding_window)
      )
      # Some code to 'de-TVM' the data types and make them pure Python
      clean_stripe_counts = dict()
      for stripe, count in stripe_counts.items():
          clean_stripe = tuple([int(v) for v in stripe])
          clean_count = int(count)
          clean_stripe_counts[clean_stripe] = clean_count
  
      return clean_stripe_counts
  
file_path: tvm/python/tvm/contrib/ethosu/cascader/stripe_config.py
imports: import tvm._ffi
  from tvm.runtime import Object
  from .None import _ffi_api
label_desc: Use image node_id 1 for calling a global function with example usage: count_stripes(stripe_config, enable_sliding_window) and returns: clean_stripe_counts