code: def test_digitize():
      x = tensor(np.array([0.2, 6.4, 3.0, 1.6]), chunk_size=2)
      bins = np.array([0.0, 1.0, 2.5, 4.0, 10.0])
      inds = digitize(x, bins)
  
      assert inds.shape == (4,)
      assert inds.dtype is not None
  
      inds = tile(inds)
  
      assert len(inds.chunks) == 2
  
file_path: mars/mars/tensor/statistics/tests/test_statistics.py
imports: import numpy
  import pytest
  from ....core import tile
  from ....lib.version import Version
  from ...datasource import tensor, array
  from ..None import digitize, histogram_bin_edges, quantile, percentile
  from ..quantile import INTERPOLATION_TYPES
label_desc: Use image node_id 1 for calling a global function with example usage: test_digitize() without return types