code: def __init__(self):
      if not env.use_tqdm:
          self.null_fds = [
              os.open(os.devnull, os.O_RDWR) for _ in range(2)
          ]
          self.save_fds = [os.dup(1), os.dup(2)]
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/evaluations/training/evaluate.py
imports: import logging
  import os
  from dataclasses import dataclass
  from pathlib import Path
  from typing import List
  from gluonts.env import env
  from gluonts.model.predictor import Predictor
  from tsbench.config import DatasetConfig, ModelConfig
  from tsbench.config.dataset import DatasetSplit
  from tsbench.forecasts import evaluate_forecasts, generate_forecasts
  from .logging import log_metric
label_desc: Use image node_id 1 to create a new _suppress_stdout_stderr object  with example: obj = _suppress_stdout_stderr()