code: def host_info_getter(func, name=None):
      """
      The decorated function is added to the process of collecting the host_info.
  
      This just adds the decorated function to the global
      ``sacred.host_info.host_info_gatherers`` dictionary.
      The functions from that dictionary are used when collecting the host info
      using :py:func:`~sacred.host_info.get_host_info`.
  
      Parameters
      ----------
      func : callable
          A function that can be called without arguments and returns some
          json-serializable information.
      name : str, optional
          The name of the corresponding entry in host_info.
          Defaults to the name of the function.
  
      Returns
      -------
      The function itself.
  
      """
      warnings.warn(
          "The host_info_getter is deprecated. "
          "Please use the `additional_host_info` argument"
          " in the Experiment constructor.",
          DeprecationWarning,
      )
      name = name or func.__name__
      host_info_gatherers[name] = func
      return func
  
imports: import os
  import platform
  import re
  import subprocess
  from xml.etree import ElementTree
  import warnings
  from typing import List
  import cpuinfo
  from sacred.utils import optional_kwargs_decorator
  from sacred.settings import SETTINGS
label_desc: Use image node_id 4 for calling a global function with example usage: host_info_getter(func, name) and returns: func