docstr: Test behavior with a Mapping input
docstr_tok: ["Test","behavior","with","a","Mapping","input"]
code: def test_get_tensor_size_bytes_map_with_mapping_input(self) -> None:
      """Test behavior with a Mapping input"""
  
      inputs = {"x": torch.rand(1, 2, 4), "y": torch.rand(5, 10, 7)}
      tensor_map = get_tensor_size_bytes_map(inputs)
      self.assertEqual(len(tensor_map), 2)
      self.assertTrue(inputs["x"] in tensor_map)
      self.assertEqual(
          tensor_map[inputs["x"]],
          inputs["x"].size().numel() * inputs["x"].element_size(),
      )
      self.assertTrue(inputs["y"] in tensor_map)
      self.assertEqual(
          tensor_map[inputs["y"]],
          inputs["y"].size().numel() * inputs["y"].element_size(),
      )
  
imports: import time
  import unittest
  from collections import deque, namedtuple
  from dataclasses import dataclass
  from typing import cast, Deque, List
  import torch
  from torchtnt.utils.memory import get_tensor_size_bytes_map, measure_rss_deltas, RSSProfiler
label_desc: Use image node_id 3 for calling the MemoryTest obj's underlying member method code with example usage: obj.test_get_tensor_size_bytes_map_with_mapping_input() without return types