docstr: Builds and returns output feature.
docstr_tok: ["Builds","and","returns","output","feature","."]
code: def build_outputs(
      cls,
      output_feature_configs: FeatureCollection[
          BaseOutputFeatureConfig
      ],
      input_size: int,
  ) -> Dict[str, OutputFeature]:
      """Builds and returns output feature."""
      # TODO: only single task currently
      if len(output_feature_configs) > 1:
          raise ValueError("Only single task currently supported")
  
      output_feature_config = output_feature_configs[0]
      output_feature_config.input_size = input_size
  
      output_features = {}
      output_feature = cls.build_single_output(
          output_feature_config, output_features
      )
      output_features[output_feature_config.name] = output_feature
  
      return output_features
  
imports: import os
  from contextlib import contextmanager
  from typing import Dict, Optional, Tuple, Union
  import lightgbm
  import numpy
  import torch
  from hummingbird.ml import convert
  from ludwig.accounting.used_tokens import get_used_tokens_for_gbm
  from ludwig.constants import BINARY, LOGITS, MODEL_GBM, NUMBER, USED_TOKENS
  from ludwig.features.base_feature import OutputFeature
  from ludwig.globals import MODEL_WEIGHTS_FILE_NAME
  from ludwig.models.base import BaseModel
  from ludwig.schema.features.base import BaseOutputFeatureConfig, FeatureCollection
  from ludwig.schema.model_config import ModelConfig
  from ludwig.utils import output_feature_utils
  from ludwig.utils.fs_utils import path_exists
  from ludwig.utils.gbm_utils import reshape_logits
  from ludwig.utils.torch_utils import get_torch_device
  from ludwig.utils.types import TorchDevice
label_desc: Use image node_id 3 for calling the GBM obj's underlying member method code with example usage: obj.build_outputs(cls, output_feature_configs, input_size) and returns: output_features