docstr: If ``inclusion=True``, get num tasks with initial state ``state``.
  Otherwise, get number tasks with initial state not equal to ``state``
  :param state: State to compare against
  :param inclusion: whether to look for inclusion or exclusion
  :return: number of tasks meeting criteria
docstr_tok: ["If","``","inclusion=True","``",",","get","num","tasks","with","initial","state","``","state","``",".","Otherwise",",","get","number","tasks","with","initial","state","not","equal","to","``","state","``",":","param","state",":","State","to","compare","against",":","param","inclusion",":","whether","to","look","for","inclusion","or","exclusion",":","return",":","number","of","tasks","meeting","criteria"]
code: def _get_num_tasks_with_starting_state(
      self, state: State, inclusion: bool
  ):
      """
      If ``inclusion=True``, get num tasks with initial state ``state``.
      Otherwise, get number tasks with initial state not equal to ``state``
      :param state: State to compare against
      :param inclusion: whether to look for inclusion or exclusion
      :return: number of tasks meeting criteria
      """
      states = self.INITIAL_TASK_STATES.values()
  
      def compare(x, y):
          return x == y if inclusion else x != y
  
      return len([s for s in states if compare(s, state)])
  
imports: from __future__ import annotations
  import datetime
  from typing import Callable
  import pytest
  from sqlalchemy.orm import eagerload
  from airflow import models
  from airflow.api.common.mark_tasks import _create_dagruns, _DagRunInfo, set_dag_run_state_to_failed, set_dag_run_state_to_queued, set_dag_run_state_to_running, set_dag_run_state_to_success, set_state
  from airflow.models import DagRun
  from airflow.utils import timezone
  from airflow.utils.session import create_session, provide_session
  from airflow.utils.state import State
  from airflow.utils.types import DagRunType
  from tests.test_utils.db import clear_db_runs
  from tests.test_utils.mapping import expand_mapped_task
label_desc: Use image node_id 4 for calling the TestMarkDAGRun obj's underlying member method code with example usage: obj._get_num_tasks_with_starting_state(state, inclusion) and returns: len, unknown