code: def build_model(cls, cfg: AdaptiveSpanSmallConfig, task):
      return cls(AdaptiveSpanDecoder(cfg, task))
  
imports: import logging
  from dataclasses import dataclass
  from typing import Dict, List, Optional
  import torch
  from fairseq.dataclass import FairseqDataclass
  from fairseq.models import FairseqIncrementalDecoder, FairseqLanguageModel, register_model
  from .adaptive_span_model import TransformerSeq
label_desc: Use image node_id 1 for calling the AdaptiveSpanTransformer obj's underlying member method code with example usage: obj.build_model(cls, cfg, task) and returns: cls