docstr: Condition on encoder/decoder of the main model
docstr_tok: ["Condition","on","encoder\/decoder","of","the","main","model"]
code: def input_from(self):
      """Condition on encoder/decoder of the main model"""
      return "decoder" if "decoder_layer" in self.config else "encoder"
  
imports: import logging
  from argparse import Namespace
  from copy import deepcopy
  from pathlib import Path
  from typing import Dict, Optional
  from fairseq.data import Dictionary
label_desc: Use image node_id 6 for calling the SingleTaskConfig obj's underlying member method code with example usage: obj.input_from() and returns: unknown