code: def _reload_ray_gauge_set_available():
      """
      Note: Gauge `record` method is deprecated in ray 1.3.0 version, so here
      make it compatible with the old and new ray versions.
      """
      global _ray_gauge_set_available
  
      if _ray_gauge_set_available is not None:
          return _ray_gauge_set_available
      _ray_gauge_set_available = (
          True
          if ray_metrics and hasattr(ray_metrics.Gauge, "set")
          else False
      )
      return _ray_gauge_set_available
  
file_path: mars/mars/metrics/backends/ray/ray_metric.py
imports: from typing import Optional, Dict
  from ....utils import lazy_import, lazy_import_on_load
  from ..metric import AbstractMetric, AbstractCounter, AbstractGauge, AbstractMeter, AbstractHistogram
label_desc: Use image node_id 1 for calling a global function with example usage: _reload_ray_gauge_set_available() and returns: _ray_gauge_set_available, _ray_gauge_set_available