print(x)
    with dag_maker() as dag:
        printx.expand(x=[1])
    dr1: DagRun = dag_maker.create_dagrun(run_type=DagRunType.SCHEDULED)
    ti = dr1.get_task_instances()[0]
    filter_kwargs = dict(dag_id=ti.dag_id, task_id=ti.task_id, run_id=ti.run_id, map_index=ti.map_index)
    ti = session.query(TaskInstance).filter_by(**filter_kwargs).one()
    tr = TaskReschedule(
        task=ti,
        run_id=ti.run_id,
        try_number=ti.try_number,
        start_date=timezone.datetime(2017, 1, 1),
        end_date=timezone.datetime(2017, 1, 2),
        reschedule_date=timezone.datetime(2017, 1, 1),
    )
    
    
    ti.map_index = -1
    ti.note = "sample note"
    session.merge(ti)
    session.flush()