code: def task_instance_mutation_hook(task_instance: TaskInstance) -> None:
      """
      Allow altering task instances before being queued by the Airflow scheduler.
  
      This could be used, for instance, to modify the task instance during retries.
  
      :param task_instance: task instance to be mutated
      """
  
file_path: airflow/airflow/policies.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import pluggy
label_desc: Use image node_id 3 for calling a global function with example usage: task_instance_mutation_hook(task_instance) without return types