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
  
file_path: metaflow/test/core/tests/basic_unbounded_foreach.py
imports: from metaflow_test import MetaflowTest, ExpectationFailed, steps, tag
label_desc: Use image node_id 2 for calling the BasicUnboundedForeachTest obj's underlying member method code with example usage: obj.inner() without return types