Those motorized bicycles are illegal, period. Generally, they are a chinese motor (cloned from a 1950's russian design) with a minimal or no lighting coil, mounted to whatever bicycle you may have leaning in the back shed. As such, unless the owner does a build well, it's an over-powered, under-braking contraption.
Regardless - it is considered a homebuilt vehicle, with no safety equipment required of a properly manufactured, and certified gas-powered moped of old.
No serial no's, registration assigned to them, no way to ensure them or plate them (legit mopeds need to be insured!) and no way to really make them safe to Canadian DOT/Ontario MTO standards, which makes them highly illegal to be on the roads, or in any other environment where they might pose a liability or collision risk.
They are common in Hamilton, seen flying around and about.. I've heard of some people being stopped, them being appropriately ticketed, and their homebuilt motorized-bicycle being seized.
I've got one myself, built it up on a lark a number of years ago as a fun, quick project - it's all great fun, if you've got an appropriate place to use one.. which isn't really on roadways sharing the same space as other vehicles, unfortunately.