code: def _get_dataset_slices(start, end):
      """Splits an absolute range to slices split by shard."""
      slices = []
      for shard_idx in range(int((end - 1) / _SHARD_SIZE) + 1):
          start_offset = shard_idx * _SHARD_SIZE
          end_offset = (shard_idx + 1) * _SHARD_SIZE
          if end_offset <= start:
              continue
          s = Slice(
              shard_idx,
              max(start, start_offset) % _SHARD_SIZE,
              (min(end, end_offset) - 1) % _SHARD_SIZE + 1,
          )
          slices.append(s)
      return slices
  
imports: import json
  import os
  from absl import logging
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 6 for calling a global function with example usage: _get_dataset_slices(start, end) and returns: slices