code: def register_data_module(cls: M) -> M:
      """
      Registers the provided class in the global model registry.
      """
      DATA_MODULE_REGISTRY[cls.name()] = cls
      return cls
  
imports: from typing import Dict, Type, TypeVar, Any
  import pytorch_lightning
  from gluonts.dataset.repository.datasets import dataset_recipes
label_desc: Use image node_id 1 for calling a global function with example usage: register_data_module(cls) and returns: cls