code: def generate_predict_and_label(num):
      predict = np.random.random_sample(num)
      label = np.random.randint(0, 2, num)
      return predict, label
  
file_path: FATE/python/fate/ml/evaluation/test/test_metric_ensembles.py
imports: import numpy
  import unittest
  from fate.ml.evaluation import classification
  from fate.ml.evaluation.metric_base import MetricEnsemble
  from fate.ml.evaluation.tool import get_binary_metrics, get_specified_metrics, get_single_val_binary_metrics
label_desc: Use image node_id 1 for calling a global function with example usage: generate_predict_and_label(num) and returns: predict,  label