code: def yml_fnc(fname, *args, **options):
      
      options = common.filter_from_options("ac_dict", options)
  
      if "ac_safe" in options:
          options["typ"] = "safe"  # Override it.
  
      iopts = anyconfig.utils.filter_options(_YAML_INIT_KWARGS, options)
      oopts = anyconfig.utils.filter_options(_YAML_INSTANCE_MEMBERS, options)
  
      yml = ryaml.YAML(**iopts)
      for attr, val in oopts.items():
          setattr(yml, attr, val)  # e.g. yml.preserve_quotes = True
  
      return getattr(yml, fname)(*args)
docs: :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