https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
if dag.is_subdag:
                if TYPE_CHECKING:
                    assert dag.parent_dag is not None
                path = dag.parent_dag.relative_fileloc
            else:
                path = dag.relative_fileloc
            if path:
                if not path.is_absolute():
                    path = "DAGS_FOLDER" / path
        return TaskInstance.generate_command(
            self.dag_id,
            self.task_id,
            run_id=self.run_id,
            mark_success=mark_success,
            ignore_all_deps=ignore_all_deps,
            ignore_task_deps=ignore_task_deps,
            ignore_depends_on_past=ignore_depends_on_past,
            wait_for_past_depends_before_skipping=wait_for_past_depends_before_skipping,
            ignore_ti_state=ignore_ti_state,
            local=local,
            pickle_id=pickle_id,
            file_path=path,
            raw=raw,
            job_id=job_id,
            pool=pool,
            cfg_path=cfg_path,
            map_index=self.map_index,
        )
    @staticmethod
    def generate_command(