code: def collect_urandom(info_add):
      import os
  
      if hasattr(os, "getrandom"):
          # PEP 524: Check if system urandom is initialized
          try:
              try:
                  os.getrandom(1, os.GRND_NONBLOCK)
                  state = "ready (initialized)"
              except BlockingIOError as exc:
                  state = "not seeded yet (%s)" % exc
              info_add("os.getrandom", state)
          except OSError as exc:
              # Python was compiled on a more recent Linux version
              # than the current Linux kernel: ignore OSError(ENOSYS)
              if exc.errno != errno.ENOSYS:
                  raise
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 9 for calling a global function with example usage: collect_urandom(info_add) without return types