code: def test_tensor_config(DRAM, SRAM):
      stripe_config = StripeConfig(
          shape=[1, 2, 3],
          extent=[2, 3, 4],
          strides=[3, 4, 5],
          order=[4, 5, 6],
          stripes=[5, 6, 7],
          offset=[6, 7, 8],
      )
      tensor = Tensor(
          shape=[10, 10, 10],
          dtype="int8",
      )
      home_region = DRAM
      state = TensorConfigState.BOUNDARY
      buffer_mode = BufferMode.ROLLING
      copy_tensor = True
      copy_region = SRAM
      tensor_config = TensorConfig(
          tensor=tensor,
          home_region=home_region,
          state=state,
          buffer_mode=buffer_mode,
          stripe_configs=[stripe_config],
          copy_tensor=copy_tensor,
          copy_region=copy_region,
      )
  
      assert tensor_config.tensor == tensor
      assert tensor_config.home_region == home_region
      assert tensor_config.state == state
      assert tensor_config.buffer_mode == buffer_mode
      assert tensor_config.stripe_configs == [stripe_config]
      assert tensor_config.copy_tensor == copy_tensor
      assert tensor_config.copy_region == copy_region
      assert hash(tensor_config) != 0
  
imports: from tvm.contrib.ethosu.cascader import StripeConfig, Tensor, MemoryRegion, TensorConfig, TensorConfigState, BufferMode
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_tensor_config(DRAM, SRAM) without return types