code: def _validate_quantile(q):
      if tf.experimental.numpy.ndim(q) == 1 and tf.size(q) < 10:
          for i in range(tf.size(q)):
              if not (0.0 <= q[i] <= 1.0):
                  return False
      else:
          if not (
              tf.math.reduce_all(q >= 0) and tf.math.reduce_all(q <= 1)
          ):
              return False
      return True
  
imports: from typing import Union, Optional, Tuple, Sequence
  import tensorflow
  from tensorflow.python.ops.numpy_ops import np_math_ops
  import ivy
  from ivy import with_unsupported_dtypes, with_supported_dtypes, with_supported_device_and_dtypes
  from ..None import backend_version
  from copy import deepcopy
label_desc: Use image node_id 7 for calling a global function with example usage: _validate_quantile(q) and returns: True, False, False