class_docstr: Test for data-loading utilities.
class_docstr_tok: ["Test","for","data-loading","utilities","."]
docstr: Test that optical nerves belong to space of landmarks.
docstr_tok: ["Test","that","optical","nerves","belong","to","space","of","landmarks","."]
code: def test_load_optical_nerves(self):
      """Test that optical nerves belong to space of landmarks."""
      data, labels, monkeys = data_utils.load_optical_nerves()
      result = data.shape
      n_monkeys = 11
      n_eyes_per_monkey = 2
      k_landmarks = 5
      dim = 3
      expected = (n_monkeys * n_eyes_per_monkey, k_landmarks, dim)
      self.assertAllClose(result, expected)
  
      landmarks_space = Landmarks(
          ambient_manifold=Euclidean(dim=dim), k_landmarks=k_landmarks
      )
  
      result = landmarks_space.belongs(data)
      self.assertTrue(gs.all(result))
  
      result = gs.logical_and(labels >= 0, labels <= 1)
      self.assertTrue(gs.all(result))
  
      result = gs.logical_and(monkeys >= 0, monkeys <= 11)
      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 11 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_load_optical_nerves() without return types