code: def test_fails_to_close_a_nonexisting_split(self):
      writer = sequential_writer.SequentialWriter(
          ds_info=_dataset_info("/unused/dir"), max_examples_per_shard=1
      )
      with self.assertRaises(KeyError):
          writer.close_splits(["train"])
  
imports: import tempfile
  from absl.testing import absltest
  from absl.testing import parameterized
  import tensorflow
  import tensorflow_datasets
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import sequential_writer
label_desc: Use image node_id 7 for calling the SequentialWriterTest obj's underlying member method code with example usage: obj.test_fails_to_close_a_nonexisting_split() without return types