code: def _try_get_item(x):
      try:
          return x.item()
      except Exception as e:
          raise MlflowException(
              f"Failed to convert metric value to float: {e}",
              error_code=INVALID_PARAMETER_VALUE,
          )
  
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 2 for calling a global function with example usage: _try_get_item(x) and returns: x