code: def test_embeddings_forward_shape(self):
      for params, init_case in itertools.product(
          self.PARAMS, self.cases()
      ):
          emb = Embeddings(**init_case)
          dummy_in = self.dummy_inputs(params, init_case)
          res = emb(dummy_in)
          expected_shape = self.expected_shape(params, init_case)
          self.assertEqual(
              res.shape, expected_shape, init_case.__str__()
          )
  
file_path: OpenNMT-py/onmt/tests/test_embeddings.py
imports: import unittest
  from onmt.modules.embeddings import Embeddings
  import itertools
  from copy import deepcopy
  import torch
  from torch.nn.init import xavier_uniform_
  from onmt.tests.utils_for_tests import product_dict
label_desc: Use image node_id 5 for calling the TestEmbeddings obj's underlying member method code with example usage: obj.test_embeddings_forward_shape() without return types