code: def hide_output(func):
      """Decorator to hide output of the function.
  
      Args:
          func (function): Hides output of this function.
  
      Raises:
          Exception: Incase the execution of function fails, it raises an exception.
  
      Returns:
          object of the called function
      """
  
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          std_out = sys.stdout
          sys.stdout = buf = io.StringIO()
          try:
              value = func(*args, **kwargs)
          except Exception as exp:
              raise Exception(buf.getvalue()) from exp
          sys.stdout = std_out
          return value
  
      return wrapper
  
imports: from __future__ import annotations
  import functools
  import io
  import logging
  import math
  import multiprocessing
  import sys
  import time
  import warnings
  from argparse import ArgumentParser
  from concurrent.futures import ProcessPoolExecutor, as_completed
  from datetime import datetime
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import cast
  import torch
  from omegaconf import DictConfig, ListConfig, OmegaConf
  from pytorch_lightning import Trainer, seed_everything
  from utils import upload_to_comet, upload_to_wandb, write_metrics
  from anomalib.config import get_configurable_parameters, update_input_size_config
  from anomalib.data import get_datamodule
  from anomalib.deploy import export
  from anomalib.deploy.export import ExportMode
  from anomalib.models import get_model
  from anomalib.utils.loggers import configure_logger
  from anomalib.utils.sweep import get_openvino_throughput, get_run_config, get_sweep_callbacks, get_torch_throughput, set_in_nested_config
label_desc: Use image node_id 1 for calling a global function with example usage: hide_output(func) and returns: wrapper, value