code: def gen_config(params):
      """Utility function to generate useful ids for shape_parameters"""
  
      dims = lambda vals: "x".join(map(str, vals))
  
      config = {}
      for param in params:
          act_shape, wgt_shape, inp_stride = param
          name = f"nhwc{dims(act_shape)}-hwio{dims(wgt_shape)}-stride{dims(inp_stride)}"
          config[name] = param
  
      return config
  
file_path: tvm/tests/python/contrib/test_hexagon/topi/test_conv2d_fp16_intrin.py
imports: import numpy
  import tvm
  import tvm.contrib.hexagon
  from tvm.topi.testing import conv2d_nhwc_python
  from ..infrastructure import get_hexagon_target
label_desc: Use image node_id 2 for calling a global function with example usage: gen_config(params) and returns: config