def METHOD_NAME(
    b: bytes,
    width: int,
    byteorder: Union[Literal["little"], Literal["big"]] = "little",
    signed=False,
):
    """Return the list of `ints` corresponding to value in `b` based on
    encoding of `width` bytes
    For example, `decode('b\x00\x00\x00\04', 4)` returns `[4]`
    """
    assert len(b) % width == 0, "Mismatch between bytes length and width"
    to_return = []
    for i in range(len(b) // width):
        start = i * width
        end = start + width
        to_return.append(
            int.from_bytes(b[start:end], byteorder=byteorder, signed=signed)
        )
    return to_return