This rule raises an issue when the validate_indices argument is set for `tf.gather ` function call.
The tf.gather function allows you to gather slices from a tensor along a specified axis according to the indices provided. The
validate_indices argument is deprecated and setting its value has no effect. Indices are always validated on CPU and never validated on
GPU.
import tensorflow as tf x = tf.constant([[1, 2], [3, 4]]) y = tf.gather(x, [1], validate_indices=True) # Noncompliant: validate_indices is deprecated
import tensorflow as tf x = tf.constant([[1, 2], [3, 4]]) y = tf.gather(x, [1]) # OK