code: def test_indexed_dataset_get(args):
      ds = indexed_dataset.make_dataset(args.data, args.dataset_impl)
      build_tokenizer(args)
      size = ds.sizes[0]
      print(f"size: {size}")
      full = ds.get(0)
      print(full)
      # print(tokenizer.detokenize(full.data.tolist()))
      print("---")
      end = ds.get(0, offset=size - 10)
      print(end)
      # print(tokenizer.detokenize(end.data.tolist()))
  
      start = ds.get(0, length=10)
      print(start)
      # print(tokenizer.detokenize(start.data.tolist()))
  
      part = ds.get(0, offset=2, length=8)
      print(part)
  
file_path: ColossalAI/examples/tutorial/sequence_parallel/data/datasets/test/test_indexed_dataset.py
imports: import argparse
  import os
  import sys
  from megatron.data import indexed_dataset
  from megatron.tokenizer import build_tokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: test_indexed_dataset_get(args) without return types