code: def test_aampdisted(T_A, T_B, dask_cluster):
      with Client(dask_cluster) as dask_client:
          m = 3
          for p in [1.0, 2.0, 3.0]:
              ref_mpdist = naive.aampdist(T_A, T_B, m, p=p)
              comp_mpdist = aampdisted(dask_client, T_A, T_B, m, p=p)
  
              npt.assert_almost_equal(ref_mpdist, comp_mpdist)
  
file_path: stumpy/tests/test_aampdist.py
imports: import naive
  import numpy
  import numpy.testing
  import pytest
  from dask.distributed import Client, LocalCluster
  from stumpy import aampdist, aampdisted
  from stumpy.aampdist import _aampdist_vect
label_desc: Use image node_id 8 for calling a global function with example usage: test_aampdisted(T_A, T_B, dask_cluster) without return types