Currently the operator allows to set requirement as list that needs to be hard coded.
It would be nice if airflow can support reading from file directly (something similar to how operators read sql file)
tests/operators/test_python.py
example_context = {"Hello": "World"}
        with set_current_context(example_context):
            pass
        with pytest.raises(
            AirflowException,
        ):
            get_current_context()
    def test_nested_context(self):
        """
        Nested execution context should be supported in case the user uses multiple context managers.
        Each time the execute method of an operator is called, we set a new 'current' context.
        This test verifies that no matter how many contexts are entered - order is preserved
        """
        max_stack_depth = 15
        ctx_list = []
        for i in range(max_stack_depth):
            
            new_context = {"ContextId": i}
            
            ctx_obj = set_current_context(new_context)
            ctx_obj.__enter__()
            ctx_list.append(ctx_obj)
        for i in reversed(range(max_stack_depth)):
            
            ctx = get_current_context()
            assert ctx["ContextId"] == i
            
            ctx_list[i].__exit__(None, None, None)
class MyContextAssertOperator(BaseOperator):