code: def log_metric(metric: str, value: Any) -> None:
      logger.info(f"gluonts[{metric}]: {value}")
  
file_path: gluonts/src/gluonts/shell/train.py
imports: import json
  import logging
  from typing import Any, Optional, Type, Union
  import gluonts
  from gluonts.core import fqname_for
  from gluonts.dataset.common import Dataset
  from gluonts.evaluation import Evaluator, backtest
  from gluonts.model.estimator import Estimator, IncrementallyTrainable
  from gluonts.model.forecast import Quantile
  from gluonts.model.predictor import Predictor
  from gluonts.itertools import maybe_len
  from gluonts.transform import FilterTransformation
  from .env import TrainEnv
  from .util import invoke_with
label_desc: Use image node_id 1 for calling a global function with example usage: log_metric(metric, value) without return types