The 1968 Vienna Convention on Road Traffic of the United Nations considers a bicycle to be a vehicle, and a person controlling a bicycle (whether actually riding or not) is considered an operator. The traffic codes of many countries reflect these definitions and demand that a bicycle satisfy certain legal requirements before it can be used on public roads. In many jurisdictions, it is an offense to use a bicycle that is not in a roadworthy condition.
"Electric power-assisted bicycle" means a vehicle that travels on not more than three wheels in contact with the ground and is equipped with (i) pedals that allow propulsion by human power and (ii) an electric motor with an input of no more than 1,000 watts that reduces the pedal effort required of the rider. For the purposes of Chapter 8 of this title, an electric power-assisted bicycle shall be a vehicle when operated on a highway.
Another type of electric assist motor, often referred to as the mid-drive system, is increasing in popularity. With this system, the electric motor is not built into the wheel but is usually mounted near (often under) the bottom bracket shell. In more typical configurations, a cog or wheel on the motor drives a belt or chain that engages with a pulley or sprocket fixed to one of the arms of the bicycle's crankset. Thus the propulsion is provided at the pedals rather than at the wheel, being eventually applied to the wheel via the bicycle's standard drive train.
On the other hand, the battery doesn’t lock into the bike, which means you can’t just leave it on your bike when you park at the bike rack. Anyone could walk by and simply remove your battery. That seems like an oversight to me, though perhaps the designers assumed that such a small battery would just be easy to take with you. And it is. My wife could probably lose this battery in her purse.