def testParseValuesWithIndexAssigment3(self):
    """Assignment to index positions in multiple names."""
    parse_dict = hparam.parse_values('arr[0]=10,arr[1]=20,L[5]=100,L[10]=200',
                                     {'arr': int,
                                      'L': int})
    self.assertEqual(len(parse_dict), 2)
    self.assertIsInstance(parse_dict['arr'], dict)
    self.assertDictEqual(parse_dict['arr'], {0: 10, 1: 20})
    self.assertIsInstance(parse_dict['L'], dict)
    self.assertDictEqual(parse_dict['L'], {5: 100, 10: 200})
Assignment to index positions in multiple names.
tensor2tensor/utils/hparam_test.py