code: def get_random_bytes(n, seed=42):
      """
      Generate a random bytes object of size *n*.
      Note the result might be compressible.
      """
      rnd = np.random.RandomState(seed)
      # Computing a huge random bytestring can be costly, so we get at most
      # 100KB and duplicate the result as needed
      base_size = 100003
      q, r = divmod(n, base_size)
      if q == 0:
          result = rnd.bytes(r)
      else:
          base = rnd.bytes(base_size)
          result = b"".join(_multiplicate_sequence(base, n))
      assert len(result) == n
      return result
  
imports: import codecs
  import decimal
  from functools import partial
  import itertools
  import sys
  import unicodedata
  import numpy
  import pyarrow
label_desc: Use image node_id 2 for calling a global function with example usage: get_random_bytes(n, seed) and returns: result