def METHOD_NAME(ukernel, channel_tile, channel_subtile, channel_round, isa):
  """Generates all tests cases for a PACKB/ZEROB micro-kernel.
  Args:
    ukernel: C name of the micro-kernel function.
    channel_tile: channel_tile parameter of the PACKB/ZEROB micro-kernel.
    channel_subtile: channel_subtile parameter of the PACKB/ZEROB micro-kernel.
    channel_round: channel_round parameter of the PACKB/ZEROB micro-kernel.
    isa: instruction set required to run the micro-kernel. Generated unit test
         will skip execution if the host processor doesn't support this ISA.
  Returns:
    Code for the test case.
  """
  _, test_name = ukernel.split("_", 1)
  _, datatype, ukernel_type, _ = ukernel.split("_", 3)
  return xngen.preprocess(PACKB_TEST_TEMPLATE, {
      "TEST_NAME": test_name.upper().replace("UKERNEL_", ""),
      "TEST_ARGS": [ukernel],
      "CHANNEL_TILE": channel_tile,
      "CHANNEL_SUBTILE": channel_subtile,
      "CHANNEL_ROUND": channel_round,
      "ISA_CHECK": xnncommon.generate_isa_check_macro(isa),
      "next_prime": next_prime,
    })