code: def _to_bigdl_metric(metric):
      metric = metric.lower()
      if metric == "accuracy" or metric == "acc":
          return metrics.Accuracy()
      elif metric == "top5accuracy" or metric == "top5acc":
          return metrics.Top5Accuracy()
      elif metric == "mae":
          from bigdl.optim.optimizer import MAE
  
          return MAE()
      elif metric == "auc":
          return metrics.AUC()
      elif metric == "treennaccuracy":
          return TreeNNAccuracy()
      else:
          raise TypeError("Unsupported metric: %s" % metric)
  
file_path: analytics-zoo/pyzoo/zoo/tfpark/estimator.py
imports: from bigdl.optim.optimizer import MaxIteration, Loss, TreeNNAccuracy
  from zoo.tfpark.utils import evaluate_string_metrics
  from zoo.pipeline.api.keras import metrics
  from zoo.tfpark.tfnet import TFNet
  from zoo.tfpark.tf_optimizer import TFOptimizer
  from zoo.tfpark.tf_dataset import TFDataset
  from zoo.util import nest
  import six
  import os
label_desc: Use image node_id 7 for calling the TFEstimator obj's underlying member method code with example usage: obj._to_bigdl_metric(metric) and returns: metrics, metrics, MAE, metrics, TreeNNAccuracy