code: def _load_tensor_vars(halfwords, tensor_w) -> Iterator[str]:
      assert len(halfwords) % 2 == 0
      offset = int(not bool(halfwords[0]))
  
      for i in range(0, len(halfwords), 2):
          var_name = f"{_get_int16_alias(halfwords[i])}__{_get_int16_alias(halfwords[i+1])}"
          y, x = halfwords[i + 1] or halfwords[i]
          tensor_index = (y * tensor_w + x + offset) // 2
          yield f"int32_t tensor__{var_name} = tensor[{tensor_index}];"
  
file_path: tvm/python/tvm/topi/arm_cpu/mprofile/dsp/micro_kernel/tensordot.py
imports: from dataclasses import dataclass
  from itertools import chain
  import textwrap
  from typing import Iterator, Optional, Tuple
label_desc: Use image node_id 6 for calling a global function with example usage: _load_tensor_vars(halfwords, tensor_w) without return types