code: def test_duplicate_config_name_fails(self) -> None:
      eb1_config = EmbeddingBagConfig(
          name="t1",
          embedding_dim=3,
          num_embeddings=10,
          feature_names=["f1"],
      )
      eb2_config = EmbeddingBagConfig(
          name="t1",
          embedding_dim=4,
          num_embeddings=10,
          feature_names=["f2"],
      )
      with self.assertRaises(ValueError):
          EmbeddingBagCollection(tables=[eb1_config, eb2_config])
  
imports: import unittest
  from functools import partial
  import torch
  import torch.fx
  from torchrec.fx import symbolic_trace
  from torchrec.modules.embedding_configs import EmbeddingBagConfig, EmbeddingConfig
  from torchrec.modules.embedding_modules import EmbeddingBagCollection, EmbeddingCollection
  from torchrec.sparse.jagged_tensor import KeyedJaggedTensor
label_desc: Use image node_id 7 for calling the EmbeddingBagCollectionTest obj's underlying member method code with example usage: obj.test_duplicate_config_name_fails() without return types