def METHOD_NAME():
    result = interface.call("jpeg_snapshot")
    if result is not None:
        name = "snapshot-%s.jpg" % datetime.now().strftime("%d.%m.%Y-%H.%M.%S")
        print("Writing jpeg %s..." % name)
        with open(name, "wb") as snap:
            snap.write(result)