code: def best_model(self, metric, asc):
      """Picks the best model based on a given metric and
      returns the index number for the model.
  
      NOTE: for loss 'asc' should be True"""
  
      best = self.data.sort_values(metric, ascending=asc).iloc[0].name
  
      return best
  
label_desc: Use image node_id 1 for calling a global function with example usage: best_model(metric, asc) and returns: best