code: def test_gplvm_constructor_checks() -> None:
      with pytest.raises(ValueError):
          assert Data.X.shape[1] == Data.Q
          latents_wrong_shape = Data.X[:, : Data.Q - 1]
          gpflow.models.GPLVM(
              Data.Y, Data.Q, X_data_mean=latents_wrong_shape
          )
      with pytest.raises(ValueError):
          observations_wrong_shape = Data.Y[:, : Data.Q - 1]
          gpflow.models.GPLVM(observations_wrong_shape, Data.Q)
      with pytest.raises(ValueError):
          observations_wrong_shape = Data.Y[:, : Data.Q - 1]
          gpflow.models.GPLVM(
              observations_wrong_shape, Data.Q, X_data_mean=Data.X
          )
  
file_path: GPflow/tests/gpflow/models/test_gplvm.py
imports: from typing import Optional
  import numpy
  import pytest
  import gpflow
  from gpflow.utilities.ops import pca_reduce
label_desc: Use image node_id 4 for calling a global function with example usage: test_gplvm_constructor_checks() without return types