class_docstr: Abstract subcommand to output applications as some type of file.
  
      
class_docstr_tok: ["Abstract","subcommand","to","output","applications","as","some","type","of","file","."]
docstr: Subclasses must override this method to return the contents of the output file for the given doc.
  subclassed methods return different types:
  str: html, json
  bytes: SVG, png
  
  Raises:
      NotImplementedError
docstr_tok: ["Subclasses","must","override","this","method","to","return","the","contents","of","the","output","file","for","the","given","doc",".","subclassed","methods","return","different","types",":","str",":","html",",","json","bytes",":","SVG",",","png","Raises",":","NotImplementedError"]
code: def file_contents(
      self, args: argparse.Namespace, doc: Document
  ) -> str | bytes | list[str] | list[bytes]:
      """Subclasses must override this method to return the contents of the output file for the given doc.
      subclassed methods return different types:
      str: html, json
      bytes: SVG, png
  
      Raises:
          NotImplementedError
  
      """
      raise NotImplementedError()
  
file_path: bokeh/src/bokeh/command/subcommands/file_output.py
imports: from __future__ import annotations
  import logging
  import argparse
  import sys
  from abc import abstractmethod
  from os.path import splitext
  from ...document import Document
  from ..subcommand import Arg, Args, Argument, Subcommand
  from ..util import build_single_handler_applications, die
label_desc: Use image node_id 7 for calling the FileOutputSubcommand obj's underlying member method code with example usage: obj.file_contents(args, doc) without return types