code: def _hsv_to_rgb(img):
      h, s, v = img[0], img[1], img[2]
      f = h * 6.0
      i = ivy.floor(f)
      f = f - i
      i = ivy.astype(i, ivy.int32) % 6
  
      p = ivy.clip(v * (1.0 - s), 0.0, 1.0)
      q = ivy.clip(v * (1.0 - s * f), 0.0, 1.0)
      t = ivy.clip(v * (1.0 - s * (1.0 - f)), 0.0, 1.0)
  
      mask = ivy.astype(
          ivy.equal(
              ivy.expand_dims(i, axis=-3),
              ivy.reshape(
                  ivy.arange(6, dtype=ivy.dtype(i)), (-1, 1, 1)
              ),
          ),
          ivy.dtype(img),
      )
      matrix = ivy.stack(
          [
              ivy.stack([v, q, p, p, t, v], axis=-3),
              ivy.stack([t, v, v, q, p, p], axis=-3),
              ivy.stack([p, p, t, v, v, q], axis=-3),
          ],
          axis=-4,
      )
      return ivy.einsum("...ijk, ...xijk -> ...xjk", mask, matrix)
  
file_path: ivy/ivy/functional/frontends/paddle/vision/transforms.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_device_and_dtypes
  from ..tensor.tensor import Tensor
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 4 for calling a global function with example usage: _hsv_to_rgb(img) and returns: ivy