code: def test_multi_index_slicing_block_single_cuda():
      """perception test"""
      if torch.cuda.is_available():
          mask = torch.rand([2, 1, 4]).to("cuda")
          in_shape = (mask.shape[-1],)
          select_block = MultiIndexSlicingBlock(
              in_keys="mask",
              out_keys="selected",
              in_shapes=in_shape,
              select_dim=-1,
              select_idxs=[0],
          )
  
          selected = select_block({"mask": mask})
          assert selected["selected"].shape == torch.Size([2, 1, 1])
          str(select_block)
  
imports: import torch
  from maze.perception.blocks.general.multi_index_slicing import MultiIndexSlicingBlock
label_desc: Use image node_id 3 for calling a global function with example usage: test_multi_index_slicing_block_single_cuda() without return types