A foaming process to prepare porous polymer membrane for lithium ion batteries