code: def compute_tensor_digest(tensor_data, tensor_targets) -> str:
      """Computes a digest for the given Tensorflow tensor.
  
      Args:
          tensor: A Tensorflow tensor.
  
      Returns:
          A string digest.
  
      """
      if tensor_targets is None:
          return compute_numpy_digest(tensor_data.numpy())
      else:
          return compute_numpy_digest(
              tensor_data.numpy(), tensor_targets.numpy()
          )
  
file_path: mlflow/mlflow/data/digest_utils.py
imports: from typing import Any, List
  from packaging.version import Version
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
  from mlflow.utils import insecure_hash
label_desc: Use image node_id 4 for calling a global function with example usage: compute_tensor_digest(tensor_data, tensor_targets) and returns: compute_numpy_digest, compute_numpy_digest