class_docstr: Test reading corrupt files.
class_docstr_tok: ["Test","reading","corrupt","files","."]
docstr: Write corrupt VISSR file to disk.
docstr_tok: ["Write","corrupt","VISSR","file","to","disk","."]
code: def corrupt_file(self, file_contents, tmp_path):
      """Write corrupt VISSR file to disk."""
      filename = tmp_path / "my_vissr_file"
      writer = VissrFileWriter(ch_type="VIS", open_function=open)
      writer.write(filename, file_contents)
      return filename
  
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 TestCorruptFile obj's underlying member method code with example usage: obj.corrupt_file(file_contents, tmp_path) and returns: filename