code: def test_parent_follow_branch(session, dag_maker):
      """
      A simple DAG with a BranchPythonOperator that follows op2. NotPreviouslySkippedDep is met.
      """
      start_date = pendulum.datetime(2020, 1, 1)
      with dag_maker(
          "test_parent_follow_branch_dag",
          schedule=None,
          start_date=start_date,
          session=session,
      ):
          op1 = BranchPythonOperator(
              task_id="op1", python_callable=lambda: "op2"
          )
          op2 = EmptyOperator(task_id="op2")
          op1 >> op2
  
      dagrun = dag_maker.create_dagrun(
          run_type=DagRunType.MANUAL, state=State.RUNNING
      )
      ti, ti2 = dagrun.task_instances
      ti.run()
  
      dep = NotPreviouslySkippedDep()
      assert (
          len(list(dep.get_dep_statuses(ti2, session, DepContext())))
          == 0
      )
      assert dep.is_met(ti2, session)
      assert ti2.state != State.SKIPPED
  
file_path: airflow/tests/ti_deps/deps/test_not_previously_skipped_dep.py
imports: from __future__ import annotations
  import pendulum
  import pytest
  from airflow.models import DagRun, TaskInstance
  from airflow.operators.empty import EmptyOperator
  from airflow.operators.python import BranchPythonOperator
  from airflow.ti_deps.dep_context import DepContext
  from airflow.ti_deps.deps.not_previously_skipped_dep import NotPreviouslySkippedDep
  from airflow.utils.state import State
  from airflow.utils.types import DagRunType
label_desc: Use image node_id 4 for calling a global function with example usage: test_parent_follow_branch(session, dag_maker) without return types