code: def test_is_view(self) -> None:
      device = "cpu" if not torch.cuda.is_available() else "cuda"
      emb = DenseTableBatchedEmbeddingBagsCodegen(
          [(2, 4), (2, 4)], use_cpu=device == "cpu"
      )
      first_table = TableBatchedEmbeddingSlice(emb.weights, 0, 8, 2, 4)
      self.assertEqual(first_table.data_ptr(), emb.weights.data_ptr())
  
file_path: torchrec/torchrec/distributed/composable/tests/test_table_batched_embedding_slice.py
imports: import copy
  import unittest
  import torch
  from fbgemm_gpu.split_table_batched_embeddings_ops_training import DenseTableBatchedEmbeddingBagsCodegen
  from torchrec.distributed.composable.table_batched_embedding_slice import TableBatchedEmbeddingSlice
label_desc: Use image node_id 1 for calling the TestTableBatchedEmbeddingSlice obj's underlying member method code with example usage: obj.test_is_view() without return types