code: def _set_search_properties_backwards_compatible(
      set_search_properties_func,
      metric: Optional[str],
      mode: Optional[str],
      config: Dict,
      **spec,
  ) -> bool:
      """Wraps around set_search_properties() so that it is backward compatible.
  
      Also outputs a warning to encourage custom searchers to be updated.
      """
      try:
          return set_search_properties_func(
              metric, mode, config, **spec
          )
      except TypeError as e:
          if str(e).startswith(
              "set_search_properties() got an unexpected keyword argument"
          ):
              logger.warning(
                  "Please update custom Searcher to take in function signature "
                  "as ``def set_search_properties(metric, mode, config, "
                  "**spec) -> bool``."
              )
              return set_search_properties_func(metric, mode, config)
          else:
              raise e
  
label_desc: Use image node_id 1 for calling a global function with example usage: _set_search_properties_backwards_compatible(set_search_properties_func, metric, mode, config) and returns: set_search_properties_func, set_search_properties_func