class_docstr: Write a transcript to a file in TSV (tab-separated values) format containing lines like:
  <start time in integer milliseconds>        <end time in integer milliseconds>      <transcript text>
  
  Using integer milliseconds as start and end times means there's no chance of interference from
  an environment setting a language encoding that causes the decimal in a floating point number
  to appear as a comma; also is faster and more efficient to parse & store, e.g., in C++.
code: def write_result(
      self,
      result: dict,
      file: TextIO,
      options: Optional[dict] = None,
      **kwargs,
  ):
      print("start", "end", "text", sep="\t", file=file)
      for segment in result["segments"]:
          print(round(1000 * segment["start"]), file=file, end="\t")
          print(round(1000 * segment["end"]), file=file, end="\t")
          print(
              segment["text"].strip().replace("\t", " "),
              file=file,
              flush=True,
          )
  
imports: import json
  import os
  import re
  import sys
  import zlib
  from typing import Callable, List, Optional, TextIO
label_desc: Use image node_id 1 for calling the WriteTSV obj's underlying member method code with example usage: obj.write_result(result, file, options) without return types