code: def train(self, feed_dict):
      for key in feed_dict.keys():
          feed_dict[key] = _utils.convert_shared_float_array_to_numpy(
              feed_dict[key]
          )
  
      _, final_train_loss, final_train_output = self.sess.run(
          [self.optimizer, self.cost, self.predictions],
          feed_dict={
              self.input: feed_dict["input"],
              self.labels: feed_dict["labels"],
              self.weights: feed_dict["weights"],
          },
      )
  
      result = {
          "loss": _np.array(final_train_loss),
          "output": _np.array(final_train_output),
      }
  
      return result
  
file_path: turicreate/src/python/turicreate/toolkits/drawing_classifier/_tf_drawing_classifier.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import numpy
  from .._tf_model import TensorFlowModel
  import turicreate.toolkits._tf_utils
  from turicreate._deps.minimal_package import _minimal_package_import_check
label_desc: Use image node_id 4 for calling the DrawingClassifierTensorFlowModel obj's underlying member method code with example usage: obj.train(feed_dict) and returns: result