code: def testInvalidMemoryIntervalRaisesException(self):
      with self.assertRaisesRegex(
          ValueError,
          r"Invalid interval \[5k, 3k\]. Start of interval must be less than or "
          "equal to end of interval.",
      ):
          command_parser.parse_memory_interval("[5k, 3k]")
  
imports: import sys
  from tensorflow.python.debug.cli import command_parser
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the ParseInterval obj's underlying member method code with example usage: obj.testInvalidMemoryIntervalRaisesException() without return types