code: def test_dictionary_keys_ucr_dataset_info(dataset):
      """Test that the length of the dictionart is the expected one."""
      keys_expected = [
          "n_classes",
          "n_timestamps",
          "test_size",
          "train_size",
          "type",
      ]
      dictionary = ucr_dataset_info(dataset)
      if "train_size" in dictionary.keys():
          assert sorted(list(dictionary.keys())) == keys_expected
      else:
          for key in dictionary.keys():
              assert (
                  sorted(list(dictionary[key].keys())) == keys_expected
              )
  
file_path: pyts/pyts/datasets/tests/test_ucr.py
imports: import pytest
  import re
  from pyts.datasets import fetch_ucr_dataset, ucr_dataset_info, ucr_dataset_list
  from pyts.datasets.ucr import _correct_ucr_name_description, _correct_ucr_name_download
label_desc: Use image node_id 3 for calling a global function with example usage: test_dictionary_keys_ucr_dataset_info(dataset) without return types