code: def to_examples(features_targets, columns=None):
      examples = []
      for row in features_targets:
          example = tf.train.Example()
          for i, col in enumerate(columns):
              example.features.feature[col].float_list.value.append(
                  row[i]
              )
              # example.features.feature[col].bytes_list.value.append(row[col].encode('utf-8'))
          examples.append(example)
      return examples
  
label_desc: Use image node_id 1 for calling a global function with example usage: to_examples(features_targets, columns) and returns: examples