nodes: 0, module; 1, function_definition; 2, function_name:dump; 3, parameters; 4, block; 5, identifier:data; 6, identifier:out; 7, default_parameter; 8, dictionary_splat_pattern; 9, expression_statement; 10, expression_statement; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, identifier:ac_parser; 15, None; 16, identifier:options; 17, comment:"""
      Save 'data' to 'out'.
  
      :param data: A mapping object may have configurations data to dump
      :param out:
          An output file path, a file, a file-like object, :class:`pathlib.Path`
          object represents the file or a namedtuple 'anyconfig.globals.IOInfo'
          object represents output to dump some data to.
      :param ac_parser: Forced parser type or parser object
      :param options:
          Backend specific optional arguments, e.g. {"indent": 2} for JSON
          loader/dumper backend
  
      :raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError
      """; 18, assignment; 19, assignment; 20, call; 21, call; 22, identifier:ioi; 23, call; 24, identifier:psr; 25, call; 26, attribute; 27, argument_list; 28, attribute; 29, argument_list; 30, attribute; 31, argument_list; 32, identifier:find; 33, argument_list; 34, identifier:LOGGER; 35, identifier:info; 36, string:"Dumping: %s"; 37, attribute; 38, identifier:psr; 39, identifier:dump; 40, identifier:data; 41, identifier:ioi; 42, dictionary_splat; 43, attribute; 44, identifier:make; 45, identifier:out; 46, identifier:ioi; 47, keyword_argument; 48, identifier:ioi; 49, identifier:path; 50, identifier:options; 51, identifier:anyconfig; 52, identifier:ioinfo; 53, identifier:forced_type; 54, identifier:ac_parser
code: def dump(data, out, ac_parser=None, **options):
      """
      Save 'data' to 'out'.
  
      :param data: A mapping object may have configurations data to dump
      :param out:
          An output file path, a file, a file-like object, :class:`pathlib.Path`
          object represents the file or a namedtuple 'anyconfig.globals.IOInfo'
          object represents output to dump some data to.
      :param ac_parser: Forced parser type or parser object
      :param options:
          Backend specific optional arguments, e.g. {"indent": 2} for JSON
          loader/dumper backend
  
      :raises: ValueError, UnknownProcessorTypeError, UnknownFileTypeError
      """
      ioi = anyconfig.ioinfo.make(out)
      psr = find(ioi, forced_type=ac_parser)
      LOGGER.info("Dumping: %s", ioi.path)
      psr.dump(data, ioi, **options)