code: def test_from_tensorflow_no_source_specified():
      x = np.random.sample((100, 2))
      tf_dataset = tf.data.Dataset.from_tensors(x)
      mlflow_ds = mlflow.data.from_tensorflow(tf_dataset)
  
      assert isinstance(mlflow_ds, TensorFlowDataset)
  
      assert isinstance(mlflow_ds.source, CodeDatasetSource)
      assert "mlflow.source.name" in mlflow_ds.source.to_json()
  
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 18 for calling a global function with example usage: test_from_tensorflow_no_source_specified() without return types