code: def from_config(cls, config):
      warnings.warn(
          "The class `AutoModelWithLMHead` is deprecated and will be removed in a future version. Please use "
          "`AutoModelForCausalLM` for causal language models, `AutoModelForMaskedLM` for masked language models and "
          "`AutoModelForSeq2SeqLM` for encoder-decoder models.",
          FutureWarning,
      )
      return super().from_config(config)
  
imports: import warnings
  from collections import OrderedDict
  from ...utils import logging
  from .auto_factory import _BaseAutoModelClass, _LazyAutoMapping, auto_class_update
  from .configuration_auto import CONFIG_MAPPING_NAMES
label_desc: Use image node_id 1 for calling the AutoModelWithLMHead obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: super