code: def log(
      self,
      parts: List[Union[str, Tuple[str, Optional[StyleCode]]]],
      *,
      is_new_line: bool,
      is_reset: bool,
  ):
      tuple_parts = []
      for p in parts:
          if type(p) == str:
              tuple_parts.append((p, None))
          else:
              tuple_parts.append(p)
      coded = [
          self.__ansi_code(text, color) for text, color in tuple_parts
      ]
  
      if is_new_line:
          end_char = "\n"
      else:
          end_char = ""
  
      text = "".join(coded)
  
      if is_reset:
          if text:
              self.print("\r" + " " * 100 + "\r" + text, end_char)
          else:
              self.print("\r" + text, end_char)
      else:
          self.print(text, end_char)
  
file_path: labml/client/labml/internal/logger/destinations/console.py
imports: from typing import List, Union, Tuple, Optional
  from ...app.logs import APP_CONSOLE_LOGS
  from ..destinations import Destination
  from ...util.colors import StyleCode, ANSI_RESET
label_desc: Use image node_id 3 for calling the ConsoleDestination obj's underlying member method code with example usage: obj.log(parts) without return types