code: def test_maamp_subspace_discords(T, m):
      discord_idx = 1
      nn_idx = 4
  
      for k in range(T.shape[0]):
          ref_S = naive.maamp_subspace(
              T, m, discord_idx, nn_idx, k, discords=True
          )
          comp_S = maamp_subspace(
              T, m, discord_idx, nn_idx, k, discords=True
          )
          npt.assert_almost_equal(ref_S, comp_S)
  
imports: import naive
  import numpy
  import numpy.testing
  import pandas
  import pytest
  from stumpy import config, core, maamp, maamp_mdl, maamp_subspace
  from stumpy.maamp import _get_first_maamp_profile, _multi_mass_absolute, maamp_multi_distance_profile
label_desc: Use image node_id 7 for calling a global function with example usage: test_maamp_subspace_discords(T, m) without return types