code: def _byteswap(data, width):
      swapped_data = bytearray(len(data))
  
      for i in range(0, len(data), width):
          for j in range(width):
              swapped_data[i + width - 1 - j] = data[i + j]
  
      return bytes(swapped_data)
  
imports: from collections import namedtuple
  import builtins
  import struct
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: _byteswap(data, width) and returns: bytes