def _get_slicers(self, index):
if not index:  <EOL><INDENT>return slice(<NUM_LIT:0>, self.SIGNATURE[<NUM_LIT:0>])<EOL><DEDENT>if index >= len(self.SIGNATURE):<EOL><INDENT>raise IndexError('<STR_LIT>')<EOL><DEDENT>pad_start = sum(self.SIGNATURE[:index])<EOL>pad_stop = pad_start + self.SIGNATURE[index]<EOL>return slice(pad_start, pad_stop)<EOL>
Return a slice object to slice a list/bytearray by.

        Positional arguments:
        index -- index of self.SIGNATURE to target self.bytearray by.

        Returns:
        slice() object. E.g. `x = _get_slicers(0); ba_instance[x]`