parameters: (resources, output_file, encoding)
docstring: Writes a map of id=>data into output_file as a data pack.
docstring_summary: Writes a map of id=>data into output_file as a data pack.
docstring_tokens: Writes a map of id = > data into output_file as a data pack .
function: def WriteDataPack(resources, output_file, encoding):
    """Writes a map of id=>data into output_file as a data pack."""
    content = WriteDataPackToString(resources, encoding)
    with open(output_file, 'wb') as file:
      file.write(content)
function_tokens: def WriteDataPack ( resources , output_file , encoding ) : content = WriteDataPackToString ( resources , encoding ) with open ( output_file , 'wb' ) as file : file . write ( content )