Under Indian criminal law, there is a provision for anticipatory bail under Section 438 of the Criminal Procedure Code. Law Commission of India in its 41st report recommended to incorporate this provision in procedure code. From Wikipedia
The bench set September 23 for the Punjab government’s response to his anticipatory‑bail petition in a case tied to a June 25 raid at his home.