code: def test_duplicate_config_name_fails(self) -> None:
      e1_config = EmbeddingConfig(
          name="t1",
          embedding_dim=2,
          num_embeddings=10,
          feature_names=["f1"],
      )
      e2_config = EmbeddingConfig(
          name="t1",
          embedding_dim=3,
          num_embeddings=10,
          feature_names=["f2"],
      )
      with self.assertRaises(ValueError):
          EmbeddingCollection(tables=[e1_config, e2_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 6 for calling the EmbeddingCollectionTest obj's underlying member method code with example usage: obj.test_duplicate_config_name_fails() without return types