Insert a single item into the bytearray before the given index. index The index where the value is to be inserted. item The item to be inserted.
builtins/bytearray.insert
bytearray.insert