class_docstr: Write data in VISSR archive format.
class_docstr_tok: ["Write","data","in","VISSR","archive","format","."]
docstr: Write file contents to disk.
docstr_tok: ["Write","file","contents","to","disk","."]
code: def write(self, filename, contents):
      """Write file contents to disk."""
      with self.open_function(filename, mode="wb") as fd:
          self._write_control_block(fd, contents)
          self._write_image_parameters(fd, contents)
          self._write_image_data(fd, contents)
  
imports: import datetime
  import gzip
  import fsspec
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  import satpy.tests.reader_tests.gms.test_gms5_vissr_data
  from satpy.readers import FSFile
  from satpy.tests.reader_tests.utils import get_jit_methods, skip_numba_unstable_if_missing
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 2 for calling the VissrFileWriter obj's underlying member method code with example usage: obj.write(filename, contents) without return types