Complete the code to import the base class for creating a custom operator in Airflow.
from airflow.operators.[1] import BaseOperator
The BaseOperator class is imported from airflow.operators.base to create custom operators.
Complete the code to define the constructor method for a custom operator class.
def __init__(self, [1], **kwargs):
The task_id is a required parameter for Airflow operators to identify the task uniquely.
Fix the error in the execute method signature of the custom operator.
def execute(self, [1]):
The execute method must accept a context dictionary parameter that Airflow passes during task execution.
Fill both blanks to call the parent constructor and pass parameters correctly.
super().[1](task_id=[2], **kwargs)
Use super().__init__ to call the parent constructor and pass task_id as a named argument.
Fill all three blanks to create a dictionary comprehension that filters tasks with priority greater than 5.
high_priority_tasks = {task: [1] for task, [2] in tasks.items() if [3] > 5}The comprehension maps each task to its priority if the priority is greater than 5.