code: def test_no_parent(session, dag_maker):
      """
      A simple DAG with a single task. NotPreviouslySkippedDep is met.
      """
      start_date = pendulum.datetime(2020, 1, 1)
      with dag_maker(
          "test_test_no_parent_dag",
          schedule=None,
          start_date=start_date,
          session=session,
      ):
          op1 = EmptyOperator(task_id="op1")
  
      (ti1,) = dag_maker.create_dagrun(
          execution_date=start_date
      ).task_instances
      ti1.refresh_from_task(op1)
  
      dep = NotPreviouslySkippedDep()
      assert (
          len(list(dep.get_dep_statuses(ti1, session, DepContext())))
          == 0
      )
      assert dep.is_met(ti1, session)
      assert ti1.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 2 for calling a global function with example usage: test_no_parent(session, dag_maker) without return types