code: def close(self):
      if self._file:
          try:
              self._ensure_header_written()
              if (
                  self._nframeswritten != self._nframes
                  or self._datalength != self._datawritten
              ):
                  self._patchheader()
              self._file.flush()
          finally:
              file = self._file
              self._file = None
              if self._opened:
                  file.close()
  
imports: from collections import namedtuple
  import warnings
label_desc: Use image node_id 22 for calling the Au_write obj's underlying member method code with example usage: obj.close() without return types