code: def save_results(results, output_dir, problem_name):
      for name, array in six.iteritems(results):
          output_filename = "{}_{}.npy".format(problem_name, name)
          output_filename = os.path.join(output_dir, output_filename)
          with tf.gfile.Open(output_filename, "wb") as fname:
              np.save(fname, array)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
  import six
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling a global function with example usage: save_results(results, output_dir, problem_name) without return types