code: def test_memstr2int(self):
      self.assertEqual(memstr2int("123 Mb"), 123 * (2**20))
      self.assertEqual(memstr2int("456 MiB"), 456 * (2**20))
      self.assertEqual(memstr2int("23 Gb"), 23 * (2**30))
      self.assertEqual(memstr2int("23 GiB"), 23 * (2**30))
      self.assertEqual(memstr2int("23 "), 23)
  
      with self.assertRaises(ValueError):
          memstr2int("300 spartans")
  
imports: import unittest
  from studio.util.gpu_util import memstr2int
label_desc: Use image node_id 1 for calling the GpuUtilTest obj's underlying member method code with example usage: obj.test_memstr2int() without return types