code: def _wrap_bytes_repr(object, width, allowance):
      current = b""
      last = len(object) // 4 * 4
      for i in range(0, len(object), 4):
          part = object[i : i + 4]
          candidate = current + part
          if i == last:
              width -= allowance
          if len(repr(candidate)) > width:
              if current:
                  yield repr(current)
              current = part
          else:
              current = candidate
      if current:
          yield repr(current)
  
imports: import collections
  import dataclasses
  import re
  import sys
  import types
  from io import StringIO
label_desc: Use image node_id 9 for calling a global function with example usage: _wrap_bytes_repr(object, width, allowance) without return types