code: def int_to_bytes_big_endian(num):
      bytestr = deque()
      while num > 0:
          # list.insert(0, ...) is inefficient
          bytestr.appendleft(num & 0xFF)
          num >>= 8
      return bytes(bytestr)
  
imports: from collections import deque
label_desc: Use image node_id 1 for calling a global function with example usage: int_to_bytes_big_endian(num) and returns: bytes