Can't help with code but one may just have to keep trying various permutations.
Obvious ones like 1234, 0000,1111, 2000, 2021 etc etc. or may be try a year the bike was made. Other wise one will need a lot of spare time to go through every combo possible starting with 0001.