code: def convert_metric_value_to_float_if_torch_tensor(x):
      import torch
  
      if isinstance(x, torch.Tensor):
          extracted_tensor_val = x.detach().cpu()
  
          return float(_try_get_item(extracted_tensor_val))
  
      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 6 for calling a global function with example usage: convert_metric_value_to_float_if_torch_tensor(x) and returns: x, float