code: def _quantile_is_valid(q):
      if cupy.count_nonzero(q < 0.0) or cupy.count_nonzero(q > 1.0):
          return False
      return True
  
file_path: cupy/cupy/_statistics/order.py
imports: import warnings
  import cupy
  from cupy import _core
  from cupy._core import _routines_statistics
  from cupy._core import _fusion_thread_local
  from cupy._logic import content
label_desc: Use image node_id 7 for calling a global function with example usage: _quantile_is_valid(q) and returns: True, False