code: def testParseMemoryInterval(self):
      self.assertEqual(
          command_parser.Interval(1024, True, 2048, True),
          command_parser.parse_memory_interval("[1k, 2k]"),
      )
      self.assertEqual(
          command_parser.Interval(1024, False, 2048, False),
          command_parser.parse_memory_interval("(1kB, 2kB)"),
      )
      self.assertEqual(
          command_parser.Interval(1024, False, 2048, True),
          command_parser.parse_memory_interval("(1k, 2k]"),
      )
      self.assertEqual(
          command_parser.Interval(1024, True, 2048, False),
          command_parser.parse_memory_interval("[1k, 2k)"),
      )
      self.assertEqual(
          command_parser.Interval(0, False, 2048, True),
          command_parser.parse_memory_interval("<=2k"),
      )
      self.assertEqual(
          command_parser.Interval(11, True, float("inf"), False),
          command_parser.parse_memory_interval(">=11"),
      )
      self.assertEqual(
          command_parser.Interval(0, False, 2048, False),
          command_parser.parse_memory_interval("<2k"),
      )
      self.assertEqual(
          command_parser.Interval(11, False, float("inf"), False),
          command_parser.parse_memory_interval(">11"),
      )
  
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 5 for calling the ParseInterval obj's underlying member method code with example usage: obj.testParseMemoryInterval() without return types