docstr: Check number of basis elements is the dimension.
  
  Parameters
  ----------
  atol : float
      Absolute tolerance.
docstr_tok: ["Check","number","of","basis","elements","is","the","dimension",".","Parameters","--","--","--","--","--","atol",":","float","Absolute","tolerance","."]
code: def test_basis_cardinality(self):
      """Check number of basis elements is the dimension.
  
      Parameters
      ----------
      atol : float
          Absolute tolerance.
      """
      basis = self.space.basis
      self.assertEqual(basis.shape[0], self.space.dim)
  
imports: import pytest
  import geomstats.backend
  from geomstats.test.random import EmbeddedSpaceRandomDataGenerator, MatrixVectorSpaceRandomDataGenerator, VectorSpaceRandomDataGenerator
  from geomstats.test.vectorization import generate_vectorization_data
  from geomstats.test_cases.geometry.complex_manifold import ComplexManifoldTestCase
  from geomstats.test_cases.geometry.manifold import ManifoldTestCase
  from geomstats.test_cases.geometry.mixins import ProjectionTestCaseMixins
  from geomstats.vectorization import get_batch_shape
label_desc: Use image node_id 1 for calling the VectorSpaceTestCase obj's underlying member method code with example usage: obj.test_basis_cardinality() without return types