docstr: Load options from a yaml file.
  
  Overwrites any options that are specified in the yaml file.
docstr_tok: ["Load","options","from","a","yaml","file",".","Overwrites","any","options","that","are","specified","in","the","yaml","file","."]
code: def _from_yaml(self, filename):
      """Load options from a yaml file.
  
      Overwrites any options that are specified in the yaml file.
      """
      # Note: We assume that the contents of the config file are trusted
      # TODO: Change this file format to be plain yaml and use SafeLoader
      yaml_options = yaml.load(open(filename), Loader=yaml.UnsafeLoader)
      self._options.update(yaml_options)
  
file_path: chartify/chartify/_core/options.py
imports: from collections import OrderedDict
  import os
  from pathlib import Path
  import yaml
label_desc: Use image node_id 6 for calling the ChartifyOptions obj's underlying member method code with example usage: obj._from_yaml(filename) without return types