code: def yml_fnc(fname, *args, **options):
      
      key = "ac_safe"
      fnc = getattr(yaml, r"safe_" + fname if options.get(key) else fname)
      return fnc(*args, **common.filter_from_options(key, options))
docs: An wrapper of yaml.safe_load, yaml.load, yaml.safe_dump and yaml.dump.
  
      :param fname:
          "load" or "dump", not checked but it should be OK.
          see also :func:`yml_load` and :func:`yml_dump`
      :param args: [stream] for load or [cnf, stream] for dump
      :param options: keyword args may contain "ac_safe" to load/dump safely