Ensure that this works:

```python
@setup
def mytask():
    print("I am a setup task")

with dag_maker() as dag:
    mytask.override(task_id='newtask')

assert len(dag.task_group.children) == 1
setup_task = dag.task_group.children["newtask"]
assert setup_task._is_setup
```
and teardown also works
self,
    ):
        """
        Test that when we use  not templateable fields, an Airflow exception is raised.
        """
        class TestOperator(BaseOperator):
            template_fields = ("execution_timeout",)
        dag = DAG("test_not_templateable_fields", start_date=datetime(2019, 8, 1))
        with dag:
            TestOperator(task_id="test", execution_timeout=timedelta(seconds=10))
        with pytest.raises(AirflowException, match="Cannot template BaseOperator fields: execution_timeout"):
            SerializedDAG.to_dict(dag)
def test_kubernetes_optional():