class_docstr: Implements a 'write()' method which, on Windows, will strip ANSI character
  sequences from the text, and if outputting to a tty, will convert them into
  win32 function calls.
code: def call_win32(self, command, params):
      if command == "m":
          for param in params:
              if param in self.win32_calls:
                  func_args = self.win32_calls[param]
                  func = func_args[0]
                  args = func_args[1:]
                  kwargs = dict(on_stderr=self.on_stderr)
                  func(*args, **kwargs)
      elif command in "J":
          winterm.erase_screen(params[0], on_stderr=self.on_stderr)
      elif command in "K":
          winterm.erase_line(params[0], on_stderr=self.on_stderr)
      elif command in "Hf":  # cursor position - absolute
          winterm.set_cursor_position(params, on_stderr=self.on_stderr)
      elif command in "ABCD":  # cursor position - relative
          n = params[0]
          # A - up, B - down, C - forward, D - back
          x, y = {"A": (0, -n), "B": (0, n), "C": (n, 0), "D": (-n, 0)}[
              command
          ]
          winterm.cursor_adjust(x, y, on_stderr=self.on_stderr)
  
imports: import re
  import sys
  import os
  from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style, BEL
  from .winterm import enable_vt_processing, WinTerm, WinColor, WinStyle
  from .win32 import windll, winapi_test
label_desc: Use image node_id 10 for calling the AnsiToWin32 obj's underlying member method code with example usage: obj.call_win32(command, params) without return types