class_docstr: Class for writing Read protos to SAM or TFRecord files.
class_docstr_tok: ["Class","for","writing","Read","protos","to","SAM","or","TFRecord","files","."]
code: def _native_writer(self, output_path, **kwargs):
      return NativeSamWriter(output_path, **kwargs)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from third_party.nucleus.io import genomics_reader
  from third_party.nucleus.io import genomics_writer
  from third_party.nucleus.io.python import sam_reader
  from third_party.nucleus.io.python import sam_writer
  from third_party.nucleus.protos import reads_pb2
  from third_party.nucleus.util import ranges
  from third_party.nucleus.util import utils
label_desc: Use image node_id 1 for calling the SamWriter obj's underlying member method code with example usage: obj._native_writer(output_path) and returns: NativeSamWriter