class_docstr: A GenomicsWriter that dispatches based on the file extension.
  
  If '.tfrecord' is present in the filename, a TFRecordWriter is used.
  Otherwise, a native writer is.
  
  Sub-classes of DispatchingGenomicsWriter must define a _native_writer()
  method.
class_docstr_tok: ["A","GenomicsWriter","that","dispatches","based","on","the","file","extension",".","If","'.tfrecord","'","is","present","in","the","filename",",","a","TFRecordWriter","is","used",".","Otherwise",",","a","native","writer","is",".","Sub-classes","of","DispatchingGenomicsWriter","must","define","a","_native_writer","(",")","method","."]
docstr: Returns a GenomicsWriter for writing the records `natively`.
  
  Args:
    output_path: The path to write the records to.
    **kwargs:  Zero or more keyword arguments.
  
  Returns:
    A GenomicsWriter.
docstr_tok: ["Returns","a","GenomicsWriter","for","writing","the","records","`","natively","`",".","Args",":","output_path",":","The","path","to","write","the","records","to",".","*","*","kwargs",":","Zero","or","more","keyword","arguments",".","Returns",":","A","GenomicsWriter","."]
code: def _native_writer(self, output_path, **kwargs):
      """Returns a GenomicsWriter for writing the records `natively`.
  
      Args:
        output_path: The path to write the records to.
        **kwargs:  Zero or more keyword arguments.
  
      Returns:
        A GenomicsWriter.
      """
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import errno
  from absl import logging
  from third_party.nucleus.io.python import tfrecord_writer
label_desc: Use image node_id 2 for calling the DispatchingGenomicsWriter obj's underlying member method code with example usage: obj._native_writer(output_path) without return types