The results of local measurements on some composite quantum systems cannot be reproduced classically. This impossibility, known as quantum nonlocality, represents a milestone in the foundations of quantum theory. Quantum nonlocality is also a valuable resource for information-processing tasks, for example, quantum communication, quantum key distribution, quantum state estimation or randomness extraction. Still, deciding whether a quantum state is nonlocal remains a challenging problem.