code: def get_datasets() -> Dict[str, ray.data.Dataset]:
      return {
          "train": ray.data.from_items(
              [{"x": i, "y": 2 * i} for i in range(10)]
          )
      }
  
file_path: ray/doc/source/train/doc_code/dl_guide.py
imports: import os
  import tempfile
  from typing import Dict, Optional
  import torch
  import ray
  from ray import train
  from ray.train import Checkpoint
  from ray.train.torch import TorchTrainer
  from ray.train.torch import TorchTrainer
label_desc: Use image node_id 1 for calling a global function with example usage: get_datasets() and returns: dict