code: def create_test_input(predict_list, slice_list):
      results = []
      for entry in predict_list:
          for slice_key in slice_list:
              results.append((slice_key, {constants.INPUT_KEY: entry}))
      return results
  
file_path: model-analysis/tensorflow_model_analysis/evaluators/legacy_aggregate_test.py
imports: import os
  import apache_beam
  from apache_beam.testing import util
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.eval_saved_model.example_trainers import linear_classifier
  from tensorflow_model_analysis.evaluators import legacy_aggregate
  from tensorflow_model_analysis.evaluators import legacy_poisson_bootstrap
label_desc: Use image node_id 1 for calling a global function with example usage: create_test_input(predict_list, slice_list) and returns: results