code: def get_dataset_object(dataset_name: str) -> DatasetLoader:
      """Returns a Ludwig dataset instance for the given dataset."""
      return ludwig.datasets.get_dataset(dataset_name)
  
imports: from pathlib import Path
  import ludwig.datasets
  from ludwig.datasets.loaders.dataset_loader import DatasetLoader
label_desc: Use image node_id 2 for calling a global function with example usage: get_dataset_object(dataset_name) and returns: ludwig