How do you tell if a micro USB cable is a data cable?

Micro USB is a type of connector that can be used to connect various devices, such as smartphones, tablets, cameras, and external hard drives. Micro USB cables can also support different functions, such as charging, data transfer, and video output. However, not all micro USB cables are the same. Some micro USB cables can only charge your devices, while others can also transfer data between them. So, how do you tell if a micro USB cable is a data cable?