code: def __init__(
      self,
      path: str,
      *,
      tf_schema: Optional["schema_pb2.Schema"] = None,
      file_format: str = "tar",
      **file_datasink_kwargs,
  ):
      super().__init__(
          path, file_format=file_format, **file_datasink_kwargs
      )
  
      _check_import(self, module="crc32c", package="crc32c")
  
      self.tf_schema = tf_schema
  
file_path: ray/python/ray/data/datasource/tfrecords_datasink.py
imports: from typing import TYPE_CHECKING, Optional
  from ray.data._internal.util import _check_import
  from ray.data.block import BlockAccessor
  from ray.data.datasource.file_datasink import BlockBasedFileDatasink
  from ray.data.datasource.tfrecords_datasource import _convert_arrow_table_to_examples, _write_record
label_desc: Use image node_id 1 to create a new _TFRecordDatasink object from inherited base classes: BlockBasedFileDatasink with example: obj = _TFRecordDatasink(path)