code: def collect_resource(info_add):
      try:
          import resource
      except ImportError:
          return
  
      limits = [
          attr for attr in dir(resource) if attr.startswith("RLIMIT_")
      ]
      for name in limits:
          key = getattr(resource, name)
          value = resource.getrlimit(key)
          info_add("resource.%s" % name, value)
  
      call_func(info_add, "resource.pagesize", resource, "getpagesize")
  
imports: import errno
  import re
  import sys
  import traceback
  import warnings
label_desc: Use image node_id 27 for calling a global function with example usage: collect_resource(info_add) without return types