code: def _solve(a, b, c):
      """Return solution of a quadratic minimization.
  
      The optimization equation is:
           f(a, b, c) = argmin_w{1/2 * a * w^2 + b * w + c * |w|}
      we get optimal solution w*:
           w* = -(b - sign(b)*c)/a if |b| > c else w* = 0
      REQUIRES: Dimensionality of a and b must be same
      Args:
        a: A Tensor
        b: A Tensor
        c: A Tensor with one element.
      Returns:
        A Tensor w, which is solution for the equation
      """
      w = (c * tf.sign(b) - b) / a
      w = tf.cast(tf.abs(b) > c, dtype=b.dtype) * w
      return w
  
file_path: addons/tensorflow_addons/optimizers/yogi.py
imports: import tensorflow
  from tensorflow_addons.utils.types import FloatTensorLike
  from tensorflow_addons.optimizers import KerasLegacyOptimizer
  from typeguard import typechecked
  from typing import Union, Callable
label_desc: Use image node_id 1 for calling a global function with example usage: _solve(a, b, c) and returns: w