def get_dag_args(dags, args):
    """Given a list of Airflow dags and a list of argument names, return a dictionary dag_ids and their corresponding args dictionaries. If a particular dag argument is not defined directly or via default args, 'None' is returned."""
    dags_args = {}
    for dag in dags:
        dag_args = {}
        for arg in args:
            dag_args[arg] = getattr(dag, arg, None) or dag.default_args.get(arg)
        dags_args[dag.dag_id] = dag_args
    
    return dags_args