code: def test_optim(self) -> None:
      embedding_bag = torch.nn.EmbeddingBag(
          num_embeddings=4, embedding_dim=4
      )
      opt = torchrec.optim.RowWiseAdagrad(embedding_bag.parameters())
      index, offsets = torch.tensor([0, 3]), torch.tensor([0, 1])
      embedding_bag_out = embedding_bag(index, offsets)
      opt.zero_grad()
      embedding_bag_out.sum().backward()
  
imports: import unittest
  import torch
  import torchrec
label_desc: Use image node_id 1 for calling the RowWiseAdagradTest obj's underlying member method code with example usage: obj.test_optim() without return types