class_docstr: A slicing block. This is for example useful for slicing the last time step in recurrent blocks by its index.
  
  :param in_keys: One key identifying the input tensors.
  :param out_keys: One key identifying the output tensors.
  :param in_shapes: List of input shapes.
  :param slice_dim: The dimension to slice from.
  :param slice_idx: The index to slice.
code: def __repr__(self):
      txt = f"{SliceBlock.__name__}"
      txt += (
          f"\nslice_dim: {self.slice_dim}, slice_idx: {self.slice_idx}"
      )
      txt += f"\nOut Shapes: {self.out_shapes()}"
      return txt
  
file_path: maze/maze/perception/blocks/general/slice.py
imports: from typing import Union, List, Sequence, Dict
  import torch
  from maze.core.annotations import override
  from maze.perception.blocks.base import PerceptionBlock
label_desc: Use image node_id 3 for calling the SliceBlock obj's underlying member method code with example usage: obj.__repr__() and returns: txt