code: def on_bytes(self, data: bytes, *, is_err: bool):
      if self == UIMode.full:
          if is_err:
              sys.stdout.write(data.decode("utf-8"))
          else:
              sys.stderr.write(data.decode("utf-8"))
      elif self == UIMode.dots:
          count = len(data) / _CHARS_PER_DOT
          if 0 < count < 1:
              count = 1
          count = round(count)
          if count == 0:
              return
          if is_err:
              logger.log(
                  "." * count,
                  Text.warning,
                  is_new_line=False,
                  is_reset=False,
              )
          else:
              logger.log(
                  "." * count,
                  Text.meta,
                  is_new_line=False,
                  is_reset=False,
              )
  
file_path: labml/remote/labml_remote/execute/__init__.py
imports: import sys
  from enum import Enum
  from labml import logger
  from labml.logger import Text
label_desc: Use image node_id 1 for calling the UIMode obj's underlying member method code with example usage: obj.on_bytes(data) without return types