code: def _generate_test_parameter(
      parameter_list,
      inner_shape,
      inner_event_shape,
      reinterpreted_batch_ndims,
  ):
      shape_pattern = _generate_valid_shape_pattern(
          inner_shape, inner_event_shape, reinterpreted_batch_ndims
      )
      return [
          dict(dicts[0], **dicts[1])
          for dicts in itertools.product(parameter_list, shape_pattern)
      ]
  
imports: import functools
  import itertools
  import operator
  import numpy
  from chainer import distributions
  from chainer import testing
  from chainer.testing import array
  from chainer.testing import attr
  from chainer import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_test_parameter(parameter_list, inner_shape, inner_event_shape, reinterpreted_batch_ndims) and returns: unknown