code: def _quantile_is_valid(q):
      # avoid expensive reductions, relevant for arrays with < O(1000) elements
      if q.ndim == 1 and q.size < 10:
          for i in range(q.size):
              if not (0.0 <= q[i] <= 1.0):
                  return False
      else:
          if not (ivy.all(q >= 0) and ivy.all(q <= 1)):
              return False
      return True
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, handle_numpy_out
label_desc: Use image node_id 2 for calling a global function with example usage: _quantile_is_valid(q) and returns: True, False, False