code: def random_matrix(request):
      shape = shapes[request.param]
      matrix = np.random.rand(*shape)
      return matrix
  
file_path: alibi/alibi/utils/tests/test_distance.py
imports: import numpy
  from scipy.spatial.distance import cityblock
  from itertools import product
  import pytest
  from alibi.utils.distance import abdm, cityblock_batch, mvdm, multidim_scaling
label_desc: Use image node_id 1 for calling a global function with example usage: random_matrix(request) and returns: matrix