code: def inner(self):
      # index must stay constant over multiple steps inside foreach
      if self.my_index is None:
          self.my_index = self.index
      assert_equals(self.my_index, self.index)
      assert_equals(self.input, self.arr[self.index])
      self.my_input = self.input
  
imports: from metaflow_test import MetaflowTest, ExpectationFailed, steps
label_desc: Use image node_id 2 for calling the BasicForeachTest obj's underlying member method code with example usage: obj.inner() without return types