class_docstr: Information of a split that is being created.
docstr: Closes the split (and the shard if it is still open).
docstr_tok: ["Closes","the","split","(","and","the","shard","if","it","is","still","open",")","."]
code: def close(self) -> None:
      """Closes the split (and the shard if it is still open)."""
      if not self.closed and self.current_shard:
          self.close_shard()
      self.closed = True
  
imports: from __future__ import annotations
  import dataclasses
  import os
  from typing import Any, Dict, List, Optional
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import example_serializer
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core.utils import py_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import array_record_module
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 3 for calling the Split obj's underlying member method code with example usage: obj.close() without return types