pass
  @metrics.prof(group="agent")
  def y():
      pass

torch.distributed.elastic.metrics.put_metric(metric_name, metric_value, metric_group='torchelastic')
Publishes a metric data point.
Usage
  put_metric("metric_name", 1)
  put_metric("metric_name", 1, "metric_group_name")
