code: def normalize_cfg_datasets(cfg):
      """
      helpers for mapping chat_template to various dataset configurations as necessary
      """
  
      if cfg.chat_template and cfg.chat_template == "chatml":
          if cfg.datasets:
              for idx, ds_cfg in enumerate(cfg.datasets):
                  if (
                      ds_cfg.type == "sharegpt"
                      and not ds_cfg.conversation
                  ):
                      LOG.info(
                          f"updating dataset {ds_cfg.path} with `conversation: chatml` to match your chat_template"
                      )
                      cfg.datasets[idx].conversation = "chatml"
  
file_path: axolotl/src/axolotl/utils/config.py
imports: import logging
  import os
  import torch
  from transformers.utils import is_torch_bf16_gpu_available
  from axolotl.utils.bench import log_gpu_memory_usage
  from axolotl.utils.models import load_model_config
label_desc: Use image node_id 3 for calling a global function with example usage: normalize_cfg_datasets(cfg) without return types