code: def __init__(self, metric, higher_better=True):
      invalidInputError(
          isinstance(metric, Metric),
          "Please provide an instance of tf.keras.metrics.Metric",
      )
      super().__init__(metric, higher_better)
  
file_path: BigDL/python/nano/src/bigdl/nano/deps/openvino/tf/metric.py
imports: import tensorflow
  from tensorflow.keras.metrics import Metric
  from bigdl.nano.utils.common import invalidInputError
  from ..core.metric import BaseOpenVINOMetric
label_desc: Use image node_id 1 to create a new KerasOpenVINOMetric object from inherited base classes: BaseOpenVINOMetric with example: obj = KerasOpenVINOMetric(metric, higher_better)