docstr: All-success trigger rule fails when some upstream tasks are skipped. The state of the ti
  should be set to SKIPPED when flag_upstream_failed is True and
  wait_for_past_depends_before_skipping is True and the past depends are met.
code: def test_all_success_tr_skip_wait_for_past_depends_before_skipping_past_depends_met(
      self, session, get_task_instance
  ):
      """
      All-success trigger rule fails when some upstream tasks are skipped. The state of the ti
      should be set to SKIPPED when flag_upstream_failed is True and
      wait_for_past_depends_before_skipping is True and the past depends are met.
      """
      ti = get_task_instance(
          TriggerRule.ALL_SUCCESS,
          success=1,
          skipped=1,
          failed=0,
          removed=0,
          upstream_failed=0,
          done=2,
          normal_tasks=["FakeTaskID", "OtherFakeTaskID"],
      )
      ti.task.xcom_pull.return_value = None
      xcom_mock = Mock(return_value=True)
      with mock.patch(
          "airflow.models.taskinstance.TaskInstance.xcom_pull",
          xcom_mock,
      ):
          dep_statuses = tuple(
              TriggerRuleDep()._evaluate_trigger_rule(
                  ti=ti,
                  dep_context=DepContext(
                      flag_upstream_failed=True,
                      wait_for_past_depends_before_skipping=True,
                  ),
                  session=session,
              )
          )
          assert len(dep_statuses) == 1
          assert not dep_statuses[0].passed
          assert ti.state == TaskInstanceState.SKIPPED
  
imports: from __future__ import annotations
  from datetime import datetime
  from typing import TYPE_CHECKING, Iterator
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from airflow.decorators import task, task_group
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.taskinstance import TaskInstance
  from airflow.operators.empty import EmptyOperator
  from airflow.ti_deps.dep_context import DepContext
  from airflow.ti_deps.deps.trigger_rule_dep import TriggerRuleDep, _UpstreamTIStates
  from airflow.utils.state import DagRunState, TaskInstanceState
  from airflow.utils.trigger_rule import TriggerRule
label_desc: Use image node_id 16 for calling the TestTriggerRuleDep obj's underlying member method code with example usage: obj.test_all_success_tr_skip_wait_for_past_depends_before_skipping_past_depends_met(session, get_task_instance) without return types