code: def expand_test_config(op_list, test_configs):
      """Returns a list of test case args that covers ops and test_configs.
  
      The list is a Cartesian product between op_list and test_configs.
  
      Args:
        op_list: A list of dicts, with items keyed by 'testcase_name' and 'op'.
          Available lists are defined later in this module.
        test_configs: A list of dicts, additional kwargs to be appended for each
          test parameters.
  
      Returns:
        test_configurations: a list of test parameters that covers all
          provided ops in op_list and args in test_configs.
      """
      test_configurations = []
      for op_info in op_list:
          test_index = 0
          for added_test_config in test_configs:
              test_config = op_info.copy()
              test_config.update(added_test_config)
              test_config["testcase_name"] = (
                  op_info["testcase_name"] + "_" + str(test_index)
              )
              test_index += 1
              test_configurations.append(test_config)
      return test_configurations
  
file_path: tensorflow/tensorflow/dtensor/python/tests/test_util_ops.py
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_bitwise_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gen_spectral_ops
  from tensorflow.python.ops import gen_stateless_random_ops
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import special_math_ops
label_desc: Use image node_id 1 for calling a global function with example usage: expand_test_config(op_list, test_configs) and returns: test_configurations