class_docstr: LogNormal Distribution on manifold of SPD Matrices.
code: def _check_metric(space):
      if not isinstance(
          space.metric, SPDLogEuclideanMetric
      ) and not isinstance(space.metric, SPDAffineMetric):
          raise ValueError(
              "Invalid Metric, "
              "Should be of type SPDLogEuclideanMetric"
              "or SPDAffineMetric"
          )
  
file_path: geomstats/geomstats/distributions/lognormal.py
imports: import geomstats.backend
  from geomstats.geometry.euclidean import Euclidean, EuclideanMetric
  from geomstats.geometry.hermitian_matrices import expmh, powermh
  from geomstats.geometry.matrices import Matrices, MatricesMetric
  from geomstats.geometry.spd_matrices import SPDAffineMetric, SPDLogEuclideanMetric, SPDMatrices, logmh
label_desc: Use image node_id 2 for calling the LogNormalSPD obj's underlying member method code with example usage: obj._check_metric(space) without return types