def METHOD_NAME(job_def: JobDefinition) -> "ModeDefSnap":
    from dagster._core.host_representation.external_data import DEFAULT_MODE_NAME
    check.inst_param(job_def, "job_def", JobDefinition)
    root_config_key = job_def.run_config_schema.config_type.key
    return ModeDefSnap(
        name=DEFAULT_MODE_NAME,
        description=None,
        resource_def_snaps=sorted(
            [build_resource_def_snap(name, rd) for name, rd in job_def.resource_defs.items()],
            key=lambda item: item.name,
        ),
        logger_def_snaps=sorted(
            [build_logger_def_snap(name, ld) for name, ld in job_def.loggers.items()],
            key=lambda item: item.name,
        ),
        root_config_key=root_config_key,
    )