code: def save_yaml(obj: dict, filename: str) -> None:
      """Save object as yaml file."""
      data = json.dumps(convert(obj), indent=1)
      data_dump = ast.literal_eval(data)
      with open(filename, "w") as f:
          yaml.safe_dump(data_dump, f, default_flow_style=False)
  
file_path: evojax/scripts/benchmarks/problems.py
imports: import ast
  import re
  import yaml
  import json
  import numpy
  from evojax.policy import MLPPolicy
  from evojax.policy.convnet import ConvNetPolicy
label_desc: Use image node_id 8 for calling a global function with example usage: save_yaml(obj, filename) without return types