code: def _get_values(arrays, func):
      """Concatenated result of applying func to a list of arrays.
  
      func should be cupy.min, cupy.max or cupy.median
      """
      dtype = arrays[0].dtype
      return cupy.concatenate(
          [
              func(a, keepdims=True)
              if a.size != 0
              else cupy.asarray([0], dtype=dtype)
              for a in arrays
          ]
      )
  
imports: import warnings
  import numpy
  import cupy
  from cupy import _core
  from cupy import _util
label_desc: Use image node_id 18 for calling a global function with example usage: _get_values(arrays, func) and returns: cupy