code: def cases(cls):
      for case in cls.INIT_CASES:
          if not cls.case_is_degenerate(case):
              yield case
  
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 2 for calling the TestEmbeddings obj's underlying member method code with example usage: obj.cases(cls) without return types