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 __init__(
      self,
      in_keys: Union[str, List[str]],
      out_keys: Union[str, List[str]],
      in_shapes: Union[Sequence[int], List[Sequence[int]]],
      slice_dim: int,
      slice_idx: int,
  ):
      super().__init__(
          in_keys=in_keys, out_keys=out_keys, in_shapes=in_shapes
      )
      self.slice_dim = slice_dim
      self.slice_idx = slice_idx
  
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 1 to create a new SliceBlock object from inherited base classes: PerceptionBlock with example: obj = SliceBlock(in_keys, out_keys, in_shapes, slice_dim, slice_idx)