code: def test_order_of_execution(self, pytester: Pytester) -> None:
      reprec = pytester.inline_runsource(
          """
              values = []
              def test_1():
                  values.append(1)
              def test_2():
                  values.append(2)
              def test_3():
                  assert values == [1,2]
              class Testmygroup(object):
                  reslist = values
                  def test_1(self):
                      self.reslist.append(1)
                  def test_2(self):
                      self.reslist.append(2)
                  def test_3(self):
                      self.reslist.append(3)
                  def test_4(self):
                      assert self.reslist == [1,2,1,2,3]
          """
      )
      passed, skipped, failed = reprec.countoutcomes()
      assert failed == skipped == 0
      assert passed == 7
  
imports: import pytest
  from _pytest.config import ExitCode
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 1 for calling the TestNewSession obj's underlying member method code with example usage: obj.test_order_of_execution(pytester) without return types