code: def test_schema_and_profile_with_multi_tensor_tuple_datasets():
      features_dataset = tf.data.Dataset.from_tensors(
          (
              np.random.sample((100, 2)),
              np.random.sample((100, 4)),
          )
      )
      targets_dataset = tf.data.Dataset.from_tensors(
          (
              np.random.sample((100, 1)),
              np.random.sample((100,)),
          )
      )
      source_uri = "test:/my/test/uri"
      source = TestDatasetSource._resolve(source_uri)
      dataset = TensorFlowDataset(
          features=features_dataset,
          targets=targets_dataset,
          source=source,
          name="testname",
      )
      assert dataset.schema.features == _infer_schema(
          {
              "0": np.random.sample((100, 2)),
              "1": np.random.sample((100, 4)),
          }
      )
      assert dataset.schema.targets == _infer_schema(
          {
              "0": np.random.sample((100, 1)),
              "1": np.random.sample((100,)),
          }
      )
      assert dataset.profile == {
          "features_cardinality": 1,
          "targets_cardinality": 1,
      }
      assert dataset.profile == {
          "features_cardinality": features_dataset.cardinality().numpy(),
          "targets_cardinality": targets_dataset.cardinality().numpy(),
      }
  
imports: import json
  import numpy
  import pytest
  import tensorflow
  import mlflow.data
  from mlflow.data.code_dataset_source import CodeDatasetSource
  from mlflow.data.pyfunc_dataset_mixin import PyFuncInputsOutputs
  from mlflow.data.schema import TensorDatasetSchema
  from mlflow.data.tensorflow_dataset import TensorFlowDataset
  from mlflow.exceptions import MlflowException
  from mlflow.models.evaluation.base import EvaluationDataset
  from mlflow.types.utils import _infer_schema
  from tests.resources.data.dataset_source import TestDatasetSource
label_desc: Use image node_id 4 for calling a global function with example usage: test_schema_and_profile_with_multi_tensor_tuple_datasets() without return types