https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
"""Set task instance duration."""
        from airflow.models.taskinstance import _set_duration
        _set_duration(task_instance=self)
    @property
    def stats_tags(self) -> dict[str, str]:
        """Return task instance tags."""
        from airflow.models.taskinstance import _stats_tags
        return _stats_tags(task_instance=self)
    def clear_next_method_args(self) -> None:
        """Ensure we unset next_method and next_kwargs to ensure that any retries don't reuse them."""
        from airflow.models.taskinstance import _clear_next_method_args
        _clear_next_method_args(task_instance=self)
    def get_template_context(
        self,
        session: Session | None = None,
        ignore_param_exceptions: bool = True,
    ) -> Context:
        """
        Return TI Context.
        :param session: SQLAlchemy ORM Session
        :param ignore_param_exceptions: flag to suppress value exceptions while initializing the ParamsDict
        """
        from airflow.models.taskinstance import _get_template_context
        return _get_template_context(
            task_instance=self,
            session=session,
            ignore_param_exceptions=ignore_param_exceptions,
        )
    def is_eligible_to_retry(self):