code: def nhwc_8h2w32c2w_1d(n, h, w, c):
      """Return index map for nhwc_8h2w32c2w 1d layout"""
      return [
          n,
          h // 8,
          w // 4,
          c // 32,
          h % 8,
          (w % 4) // 2,
          c % 32,
          w % 2,
      ]
  
imports: import math
  import struct
  from typing import Dict, Tuple, Union
  import tvm
  from tvm import IRModule, te, tir
  from tvm.tir import IndexMap, PrimFunc
label_desc: Use image node_id 8 for calling a global function with example usage: nhwc_8h2w32c2w_1d(n, h, w, c) and returns: list