def METHOD_NAME(
    logger_config: Any = None,
    job_def: Optional["JobDefinition"] = None,
) -> "UnboundInitLoggerContext":
    """Builds logger initialization context from provided parameters.
    This function can be used to provide the context argument to the invocation of a logger
    definition.
    Note that you may only specify one of pipeline_def and job_def.
    Args:
        logger_config (Any): The config to provide during initialization of logger.
        job_def (Optional[JobDefinition]): The job definition that the logger will be used with.
    Examples:
        .. code-block:: python
            context = build_init_logger_context()
            logger_to_init(context)
    """
    from dagster._core.definitions import JobDefinition
    from dagster._core.execution.context.logger import UnboundInitLoggerContext
    check.opt_inst_param(job_def, "job_def", JobDefinition)
    return UnboundInitLoggerContext(logger_config=logger_config, job_def=job_def)