code: def test_manhattan_distances():
      x = mt.random.randint(10, size=(10, 3), density=0.4)
      y = mt.random.randint(10, size=(11, 3), density=0.5)
  
      with pytest.raises(TypeError):
          manhattan_distances(x, y, sum_over_features=False)
  
      x = x.todense()
      y = y.todense()
  
      d = manhattan_distances(x, y, sum_over_features=True)
      assert d.shape == (10, 11)
      d = manhattan_distances(x, y, sum_over_features=False)
      assert d.shape == (110, 3)
  
file_path: mars/mars/learn/metrics/pairwise/tests/test_manhattan_distances.py
imports: import numpy
  import scipy.sparse
  import pytest
  from sklearn.metrics.pairwise import manhattan_distances
  from .....None import tensor
  from ..None import manhattan_distances
label_desc: Use image node_id 1 for calling a global function with example usage: test_manhattan_distances() without return types