<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_nested_error_groups():
 """Run nested groups example where an error occurs in nested main phase. In this example, the first main phase in the nested PhaseGroup errors out. The other inner main phase is skipped, as is the outer main phase. Both PhaseGroups were entered, so both teardown phases are run. """

  test = htf.Test(
      htf.PhaseGroup(
          main=[
              htf.PhaseGroup.with_teardown(inner_teardown_phase)(
                  error_main_phase, main_phase),
              main_phase,
          ],
          teardown=[teardown_phase],
      )
  )
  test.execute()