code: def _force_correct_text_writer(
      text_writer: t.IO[t.Any],
      encoding: t.Optional[str],
      errors: t.Optional[str],
      force_writable: bool = False,
  ) -> t.TextIO:
      return _force_correct_text_stream(
          text_writer,
          encoding,
          errors,
          _is_binary_writer,
          _find_binary_writer,
          force_writable=force_writable,
      )
  
imports: import codecs
  import io
  import os
  import re
  import sys
  import typing
  from weakref import WeakKeyDictionary
label_desc: Use image node_id 13 for calling a global function with example usage: _force_correct_text_writer(text_writer, encoding, errors, force_writable) and returns: _force_correct_text_stream