class_docstr: Stack StochasticBlock sequentially.
      
class_docstr_tok: ["Stack","StochasticBlock","sequentially","."]
code: def __getitem__(self, key):
      layers = list(self._children.values())[key]
      if isinstance(layers, list):
          net = type(self)()
          net.add(*(l() for l in layers))
          return net
      else:
          return layers()
  
file_path: mxnet/python/mxnet/gluon/probability/block/stochastic_block.py
imports: from functools import wraps
  from ...block import HybridBlock
  from ...utils import _indent
label_desc: Use image node_id 5 for calling the StochasticSequential obj's underlying member method code with example usage: obj.__getitem__(key) and returns: net, layers