code: def convert(in_filename, out_filename):
      """Converts a recognized genomics file `in_filename` to `out_filename`.
  
      Args:
        in_filename: str; filename of a genomics data file to use as input.
        out_filename: str; filename of a genomics data file to use as output, or
          None, if no output should be written.
  
      Raises:
        ConversionError, if the conversion could not be executed.
      """
      reader_class, writer_class = _reader_writer_classes(
          in_filename, out_filename
      )
      reader = reader_class(in_filename)
  
      with reader_class(in_filename) as reader:
          with writer_class(
              out_filename, header=reader.header
          ) as writer:
              start = time.time()
              i = 0
              for record in reader:
                  i += 1
                  writer.write(record)
                  logging.log_every_n(
                      logging.INFO, "Progress: %d records", LOG_EVERY, i
                  )
              elapsed = time.time() - start
              logging.info(
                  "Done, processed %d records in %0.2f seconds.",
                  i,
                  elapsed,
              )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import re
  import sys
  import time
  from absl import app
  from absl import logging
  from third_party.nucleus.io import bed
  from third_party.nucleus.io import fastq
  from third_party.nucleus.io import gff
  from third_party.nucleus.io import sam
  from third_party.nucleus.io import vcf
label_desc: Use image node_id 5 for calling a global function with example usage: convert(in_filename, out_filename) without return types