class_docstr: Test for data-loading utilities.
class_docstr_tok: ["Test","for","data-loading","utilities","."]
docstr: Test that the connectomes belong to SPD.
docstr_tok: ["Test","that","the","connectomes","belong","to","SPD","."]
code: def test_load_connectomes(self):
      """Test that the connectomes belong to SPD."""
      spd = SPDMatrices(28)
      data, _, _ = data_utils.load_connectomes(as_vectors=True)
      result = data.shape
      expected = (86, 27 * 14)
      self.assertAllClose(result, expected)
  
      data, _, labels = data_utils.load_connectomes()
      result = spd.belongs(data)
      self.assertTrue(gs.all(result))
  
      result = gs.logical_and(labels >= 0, labels <= 1)
      self.assertTrue(gs.all(result))
  
imports: import geomstats.backend
  import geomstats.datasets.utils
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.hypersphere import Hypersphere
  from geomstats.geometry.landmarks import Landmarks
  from geomstats.geometry.spd_matrices import SPDMatrices
  from geomstats.geometry.special_euclidean import SpecialEuclidean
  from geomstats.geometry.special_orthogonal import SpecialOrthogonal
  from geomstats.information_geometry.beta import BetaDistributions
  from geomstats.test.test_case import TestCase, np_and_autograd_only
label_desc: Use image node_id 8 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_load_connectomes() without return types