code: def test_device(self) -> None:
      config = EmbeddingBagConfig(
          name="t1",
          embedding_dim=3,
          num_embeddings=10,
          feature_names=["f1"],
      )
      ebc = EmbeddingBagCollection(
          tables=[config], device=torch.device("meta")
      )
      self.assertEqual(
          torch.device("meta"), ebc.embedding_bags["t1"].weight.device
      )
  
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 8 for calling the EmbeddingBagCollectionTest obj's underlying member method code with example usage: obj.test_device() without return types