code: def test_get_embedding(self, obs_dim, embedding_dim):
      env = GymEnv(
          DummyBoxEnv(obs_dim=obs_dim, action_dim=embedding_dim)
      )
      embedding_spec = InOutSpec(
          input_space=env.spec.observation_space,
          output_space=env.spec.action_space,
      )
      embedding = GaussianMLPEncoder(embedding_spec)
      task_input = tf.compat.v1.placeholder(
          tf.float32, shape=(None, None, embedding.input_dim)
      )
      embedding.build(task_input, name="task_input")
  
      env.reset()
      obs = env.step(env.action_space.sample()).observation
  
      latent, _ = embedding.get_latent(obs)
      latents, _ = embedding.get_latents([obs] * 5)
      assert env.action_space.contains(latent)
      for latent in latents:
          assert env.action_space.contains(latent)
  
file_path: garage/tests/garage/tf/embeddings/test_gaussian_mlp_encoder.py
imports: import pickle
  from unittest import mock
  import akro
  import numpy
  import pytest
  import tensorflow
  from garage import InOutSpec
  from garage.envs import GymEnv
  from garage.tf.embeddings import GaussianMLPEncoder
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.envs.dummy import DummyBoxEnv
label_desc: Use image node_id 1 for calling the TestGaussianMLPEncoder obj's underlying member method code with example usage: obj.test_get_embedding(obs_dim, embedding_dim) without return types