code: def collect_fips(info_add):
      try:
          import _hashlib
      except ImportError:
          _hashlib = None
  
      if _hashlib is not None:
          call_func(
              info_add,
              "fips.openssl_fips_mode",
              _hashlib,
              "get_fips_mode",
          )
  
      try:
          with open(
              "/proc/sys/crypto/fips_enabled", encoding="utf-8"
          ) as fp:
              line = fp.readline().rstrip()
  
          if line:
              info_add("fips.linux_crypto_fips_enabled", line)
      except OSError:
          pass
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 38 for calling a global function with example usage: collect_fips(info_add) without return types