code: def test_maamped_one_subsequence_nan_self_join_first_dimension(
      T, m, substitution_location, dask_cluster
  ):
      with Client(dask_cluster) as dask_client:
          excl_zone = int(np.ceil(m / 4))
  
          T_sub = T.copy()
          T_sub[0, substitution_location] = np.nan
  
          ref_P, ref_I = naive.maamp(T_sub, m, excl_zone)
          comp_P, comp_I = maamped(dask_client, T_sub, m)
  
          npt.assert_almost_equal(ref_P, comp_P)
          npt.assert_almost_equal(ref_I, comp_I)
  
imports: import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from dask.distributed import Client, LocalCluster
  from stumpy import config, maamped
label_desc: Use image node_id 12 for calling a global function with example usage: test_maamped_one_subsequence_nan_self_join_first_dimension(T, m, substitution_location, dask_cluster) without return types