code: def _index_refresh_types(filter):
      """Refresh types are provided by an optional `index_refresh_types` attribute."""
      return getattr(filter, "index_refresh_types", None)
  
file_path: guildai/guild/filter_util.py
imports: from guild import filter
  from guild import index
  from guild import var
label_desc: Use image node_id 4 for calling a global function with example usage: _index_refresh_types(filter) and returns: getattr