A new law set to take effect in a few weeks will criminalize AI-generated sexually explicit images.