code: def test_hf_dataset_loading():
      import datasets
  
      loader = ludwig.datasets.get_dataset("hugging_face")
      data = loader.load("JeremyAlain/123_test", "data_0")
      hf_data = datasets.load_dataset(
          path="JeremyAlain/123_test", name="data_0"
      )
  
      assert len(data) == hf_data["train"].num_rows
  
      train, val, test = loader.load(
          "neil-code/dialogsum-test", None, split=True
      )
      hf_data = datasets.load_dataset(path="neil-code/dialogsum-test")
  
      assert len(train) == hf_data["train"].num_rows
      assert len(val) == hf_data["validation"].num_rows
      assert len(test) == hf_data["test"].num_rows
  
file_path: ludwig/tests/ludwig/datasets/test_datasets.py
imports: import io
  import os
  import uuid
  from unittest import mock
  import pandas
  import pytest
  import ludwig.datasets
  from ludwig.api import LudwigModel
  from ludwig.datasets.dataset_config import DatasetConfig
  from ludwig.datasets.loaders.dataset_loader import DatasetState
  from tests.integration_tests.utils import private_test
label_desc: Use image node_id 8 for calling a global function with example usage: test_hf_dataset_loading() without return types