code: def test_max_ones_index(self):
      self.assertEqual(
          9, max_ones_index([1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1])
      )
      self.assertEqual(
          3, max_ones_index([1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1])
      )
      self.assertEqual(
          -1, max_ones_index([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
      )
  
imports: from algorithms.arrays import delete_nth, delete_nth_naive, flatten_iter, flatten, garage, josephus, longest_non_repeat_v1, longest_non_repeat_v2, get_longest_non_repeat_v1, get_longest_non_repeat_v2, Interval, merge_intervals, missing_ranges, move_zeros, plus_one_v1, plus_one_v2, plus_one_v3, rotate_v1, rotate_v2, rotate_v3, summarize_ranges, three_sum, two_sum, max_ones_index, trimmean, top_1, limit, n_sum
  import unittest
label_desc: Use image node_id 1 for calling the TestMaxOnesIndex obj's underlying member method code with example usage: obj.test_max_ones_index() without return types