code: def register_dataset(cls: D) -> D:
      """
      Registers the provided class in the global dataset registry.
      """
      DATASET_REGISTRY[cls.name()] = cls
      return cls
  
imports: from pathlib import Path
  from typing import Dict, Type, TypeVar, Union
  from tsbench.constants import DEFAULT_DATA_PATH
  from ._base import DatasetConfig
label_desc: Use image node_id 1 for calling a global function with example usage: register_dataset(cls) and returns: cls