class_docstr: LogNormal Distribution on Euclidean Space.
code: def _check_metric(space):
      if type(space.metric) not in (EuclideanMetric, MatricesMetric):
          raise ValueError(
              "Invalid Metric, "
              "Should be of type EuclideanMetric or MatricesMetric"
          )
  
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 LogNormalEuclidean obj's underlying member method code with example usage: obj._check_metric(space) without return types