def METHOD_NAME():
    def f():
        with tf.GradientTape() as tape:
            loss = v + v
        gradients = tape.gradient(loss, [v])
        opt.apply_gradients(zip(gradients, [v]))
    distribution.run(f)