code: def test_from_huggingface_dataset_no_source_specified():
      ds = datasets.load_dataset("rotten_tomatoes", split="train")
      mlflow_ds = mlflow.data.from_huggingface(ds)
  
      assert isinstance(mlflow_ds, HuggingFaceDataset)
  
      assert isinstance(mlflow_ds.source, CodeDatasetSource)
      assert "mlflow.source.name" in mlflow_ds.source.to_json()
  
imports: import json
  import os
  import datasets
  import pandas
  import pytest
  import mlflow.data
  import mlflow.data.huggingface_dataset
  from mlflow.data.code_dataset_source import CodeDatasetSource
  from mlflow.data.dataset_source_registry import get_dataset_source_from_json
  from mlflow.data.huggingface_dataset import HuggingFaceDataset
  from mlflow.data.huggingface_dataset_source import HuggingFaceDatasetSource
  from mlflow.exceptions import MlflowException
  from mlflow.models.evaluation.base import EvaluationDataset
  from mlflow.types.schema import Schema
  from mlflow.types.utils import _infer_schema
label_desc: Use image node_id 8 for calling a global function with example usage: test_from_huggingface_dataset_no_source_specified() without return types