code: def convert_metric_value_to_float_if_ndarray(x):
      import numpy as np
  
      if isinstance(x, np.ndarray):
          return float(_try_get_item(x))
  
      return x
  
file_path: mlflow/mlflow/tracking/metric_value_conversion_utils.py
imports: import sys
  from mlflow.exceptions import INVALID_PARAMETER_VALUE, MlflowException
label_desc: Use image node_id 5 for calling a global function with example usage: convert_metric_value_to_float_if_ndarray(x) and returns: x, float