code: def test_get_dataset_info(
      path, expected_configs, expected_splits_in_first_config
  ):
      infos = get_dataset_infos(path)
      assert list(infos.keys()) == expected_configs
      expected_config = expected_configs[0]
      assert expected_config in infos
      info = infos[expected_config]
      assert info.config_name == expected_config
      assert list(info.splits.keys()) == expected_splits_in_first_config
  
file_path: datasets/tests/test_inspect.py
imports: import os
  from pathlib import Path
  import pytest
  from datasets.inspect import get_dataset_config_info, get_dataset_config_names, get_dataset_default_config_name, get_dataset_infos, get_dataset_split_names, inspect_dataset, inspect_metric
  from datasets.packaged_modules.csv import csv
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_dataset_info(path, expected_configs, expected_splits_in_first_config) without return types