class_docstr: Determines whether a task's DagRun is in valid state.
class_docstr_tok: ["Determines","whether","a","task","'s","DagRun","is","in","valid","state","."]
code: def _get_dep_statuses(self, ti, session, dep_context):
      dr = ti.get_dagrun(session)
      if dr.state != DagRunState.RUNNING:
          yield self._failing_status(
              reason=f"Task instance's dagrun was not in the 'running' state but in the state '{dr.state}'."
          )
  
imports: from __future__ import annotations
  from airflow.ti_deps.deps.base_ti_dep import BaseTIDep
  from airflow.utils.session import provide_session
  from airflow.utils.state import DagRunState
label_desc: Use image node_id 1 for calling the DagrunRunningDep obj's underlying member method code with example usage: obj._get_dep_statuses(ti, session, dep_context) without return types