code: def random_bytes(nbytes):
      """
      Generate one random binary string.
      """
      # NOTE getrandbits(0) fails
      if nbytes > 0:
          return random.getrandbits(nbytes * 8).to_bytes(
              nbytes, byteorder="little"
          )
      else:
          return b""
  
imports: import contextlib
  import io
  import random
  import socket
  import subprocess
  import sys
  import threading
  import uuid
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: random_bytes(nbytes) and returns: random, bytes