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
self.dag.create_dagrun(
            run_type=DagRunType.MANUAL,
            execution_date=DEFAULT_DATE,
            start_date=DEFAULT_DATE,
            state=State.RUNNING,
            external_trigger=False,
        )
        def func():
            return 'test_return_value'
        python_operator = PythonOperator(
            task_id='python_operator',
            python_callable=func,
            dag=self.dag,
            show_return_value_in_logs=False,
        )
        with self.assertLogs('airflow.task.operators', level=logging.INFO) as cm:
            python_operator.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE)
        assert (
            'INFO:airflow.task.operators:Done. Returned value was: test_return_value' not in cm.output
        ), 'Return value should not be shown'
        assert (
            'INFO:airflow.task.operators:Done. Returned value not shown' in cm.output
        ), 'Log message that the option is turned off should be shown'
class TestBranchOperator(unittest.TestCase):
    @classmethod
    def setUpClass(cls):