code: def _float_metric_value(metric):
      """Gets the value of a float-value keras metric."""
      return metric.result().numpy().astype(float)
  
file_path: autodist/examples/benchmark/utils/bert_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  import sys
  import tensorflow
  import time
  from absl import logging
label_desc: Use image node_id 2 for calling a global function with example usage: _float_metric_value(metric) and returns: metric