code: def random_bytes(size=28):
      gen = (random.randint(0, 255) for _ in xrange(size))
      if sys.version_info[0] >= 3:
          return bytes(gen)
      else:
          return array("B", gen).tostring()
  
file_path: whoosh/src/whoosh/util/__init__.py
imports: from __future__ import with_statement
  import random, sys, time
  from bisect import insort
  from functools import wraps
  from whoosh.compat import xrange
label_desc: Use image node_id 2 for calling a global function with example usage: random_bytes(size) and returns: bytes, array