Used in https://github.com/mhenc/airflow/blob/master/airflow/dag_processing/manager.py#L613

should be straighforward
schedule=schedule,
                owner_links=owner_links,
                auto_register=auto_register,
            ) as dag_obj:
                
                if f.__doc__:
                    dag_obj.doc_md = f.__doc__
                
                
                f_kwargs = {}
                for name, value in f_sig.arguments.items():
                    f_kwargs[name] = dag_obj.param(name, value)
                
                back = sys._getframe().f_back
                dag_obj.fileloc = back.f_code.co_filename if back else ""
                
                f(**f_kwargs)
            
            return dag_obj
        
        fixup_decorator_warning_stack(factory)
        return factory
    return wrapper
STATICA_HACK = True
globals()["kcah_acitats"[::-1].upper()] = False
if STATICA_HACK:  
    from airflow.models.serialized_dag import SerializedDagModel
    DagModel.serialized_dag = relationship(SerializedDagModel)
    """:sphinx-autoapi-skip:"""
class DagContext: