class_docstr: Class that for helping write the animated GIF file. This is based on
  code from images2gif.py (part of visvis). The version here is modified
  to allow streamed writing.
class_docstr_tok: ["Class","that","for","helping","write","the","animated","GIF","file",".","This","is","based","on","code","from","images2gif.py","(","part","of","visvis",")",".","The","version","here","is","modified","to","allow","streamed","writing","."]
docstr: Application extension. This part specifies the amount of loops.
  If loop is 0 or inf, it goes on infinitely.
docstr_tok: ["Application","extension",".","This","part","specifies","the","amount","of","loops",".","If","loop","is","0","or","inf",",","it","goes","on","infinitely","."]
code: def getAppExt(self, loop):
      """Application extension. This part specifies the amount of loops.
      If loop is 0 or inf, it goes on infinitely.
      """
      if loop == 1:
          return b""
      if loop == 0:
          loop = 2**16 - 1
      bb = b""
      if (
          loop != 0
      ):  # omit the extension if we would like a nonlooping gif
          bb = b"\x21\xFF\x0B"  # application extension
          bb += b"NETSCAPE2.0"
          bb += b"\x03\x01"
          bb += intToBin(loop)
          bb += b"\x00"  # end
      return bb
  
file_path: imageio/imageio/plugins/pillowmulti.py
imports: import logging
  import numpy
  from .pillow_legacy import PillowFormat, image_as_uint, ndarray_to_pil
label_desc: Use image node_id 8 for calling the GifWriter obj's underlying member method code with example usage: obj.getAppExt(loop) and returns: bb, bytes