code: def results_to_proto(results):
      """Given a list of result dicts, convert it to a tcav.Results proto.
  
      Args:
        results: a list of dictionaries returned by tcav.run()
  
      Returns:
        TCAV.Results proto
      """
      results_proto = Results()
      for result in results:
          results_proto.results.append(result_to_proto(result))
      return results_proto
  
file_path: tcav/tcav/utils.py
imports: from scipy.stats import ttest_ind
  import numpy
  import tensorflow
  from tcav.tcav_results.results_pb2 import Result, Results
label_desc: Use image node_id 9 for calling a global function with example usage: results_to_proto(results) and returns: results_proto