code: def test_ethosu_part():
      te_subgraph = cs.TESubgraph([], None)
      output_quantum = [1, 2, 2, 8]
      propagator = cs.Propagator(
          [
              [1, 0, 0, 0, 2],
              [0, 1, 0, 0, 2],
              [0, 0, 1, 0, 0],
              [0, 0, 0, 1, 0],
              [0, 0, 0, 0, 1],
          ],
          [0, 0, 0, 0],
      )
      stripe_config = cs.StripeConfig(
          [1, 4, 4, 16],
          [1, 64, 72, 96],
          [1, 4, 4, 16],
          [1, 2, 3, 4],
          [1, 16, 13, 6],
          [0, 0, 0, 0],
      )
      subkernels = 3
  
      valid_block_configs = [
          cs.BlockConfig([1, 2, 4, 16], [1, 2, 4, 16], 15000, 7500)
      ]
  
      part = EthosuPart(
          te_subgraph,
          [propagator],
          output_quantum,
          subkernels,
          valid_block_configs,
          1,
      )
      input_tensor = cs.Tensor(shape=[1, 66, 74, 16], dtype="int8")
      part.set_input(0, input_tensor)
      output_tensor = cs.Tensor(shape=[1, 66, 74, 16], dtype="int8")
      part.set_output(output_tensor)
  
      assert part.get_stripe_align_hint() == output_quantum
      # Check that the performance model runs, don't verify output
      part.get_performance_info(stripe_config, BufferMode.ROLLING)
      part.get_performance_info(stripe_config, BufferMode.RECOMPUTE)
  
imports: import pytest
  import tvm.contrib.ethosu.cascader
  from tvm.contrib.ethosu.cascader.graph import BufferMode
  from tvm.contrib.ethosu.cascader.parts import EthosuPart
label_desc: Use image node_id 1 for calling a global function with example usage: test_ethosu_part() without return types