def METHOD_NAME(
    event_log_entry: EventLogEntry, metadata_key="io_manager_branch"
) -> Optional[str]:
    asset_mat = event_log_entry.asset_materialization
    return (
        get_branch_name_from_materialization(asset_mat, metadata_key=metadata_key)
        if asset_mat
        else None
    )