class_docstr: Schema for DAGRun.
class_docstr_tok: ["Schema","for","DAGRun","."]
docstr: Populate execution_date from logical_date for compatibility.
docstr_tok: ["Populate","execution_date","from","logical_date","for","compatibility","."]
code: def autofill(self, data, **kwargs):
      """Populate execution_date from logical_date for compatibility."""
      ret_data = {}
      data["execution_date"] = data["logical_date"]
      if self.context.get("fields"):
          ret_fields = self.context.get("fields")
          for ret_field in ret_fields:
              if ret_field not in data:
                  raise ValueError(f"{ret_field} not in DAGRunSchema")
              ret_data[ret_field] = data[ret_field]
      else:
          ret_data = data
  
      return ret_data
  
imports: from __future__ import annotations
  import json
  from typing import NamedTuple
  from marshmallow import fields, post_dump, pre_load, validate
  from marshmallow.schema import Schema
  from marshmallow.validate import Range
  from marshmallow_sqlalchemy import SQLAlchemySchema, auto_field
  from pendulum.parsing import ParserError
  from airflow.api_connexion.exceptions import BadRequest
  from airflow.api_connexion.parameters import validate_istimezone
  from airflow.api_connexion.schemas.enum_schemas import DagStateField
  from airflow.models.dagrun import DagRun
  from airflow.utils import timezone
  from airflow.utils.state import DagRunState
  from airflow.utils.types import DagRunType
label_desc: Use image node_id 2 for calling the DAGRunSchema obj's underlying member method code with example usage: obj.autofill(data) and returns: ret_data