code: def dump_default_yaml(yaml_path):
      """
      Dump a default yaml, which can be overridden by the custom operator.
      """
      training_config = TrainingConfig()
      training_config.save_to_yaml(path2yaml=yaml_path)
      trainer_log.info("dump default yaml to %s", yaml_path)
  
imports: import json
  import os
  from dataclasses import asdict, dataclass, field, fields
  from enum import Enum
  import torch
  from typing import Optional, Dict, Any, Union
  from towhee.utils.log import trainer_log
  from towhee.utils.yaml_utils import dump_yaml, load_yaml
label_desc: Use image node_id 2 for calling a global function with example usage: dump_default_yaml(yaml_path) without return types