def take_snapshot(droplet, name):
print("<STR_LIT>")<EOL>droplet.power_off()<EOL>droplet.wait() <EOL>print("<STR_LIT>")<EOL>droplet.take_snapshot(name)<EOL>droplet.wait()<EOL>snapshots = droplet.snapshots()<EOL>print("<STR_LIT>")<EOL>print(snapshots)<EOL>
Take a snapshot of a droplet

Parameters
----------
name: str
    name for snapshot