code: def testGetMemoryInfoUnparsableDevice(self):
      with self.assertRaisesRegex(
          ValueError, "Failed parsing device name"
      ):
          context.context().get_memory_info("GPU")
      with self.assertRaisesRegex(
          ValueError, "Failed parsing device name"
      ):
          context.context().get_memory_info("GPU:")
      with self.assertRaisesRegex(
          ValueError, "Failed parsing device name"
      ):
          context.context().get_memory_info("GPU:CPU")
  
imports: import weakref
  from absl.testing import parameterized
  import numpy
  from xla.service import hlo_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the ContextTest obj's underlying member method code with example usage: obj.testGetMemoryInfoUnparsableDevice() without return types