code: def from_pretrained(
      cls, pretrained_model_name_or_path, *model_args, **kwargs
  ):
      warnings.warn(
          "The class `TFAutoModelWithLMHead` is deprecated and will be removed in a future version. Please use"
          " `TFAutoModelForCausalLM` for causal language models, `TFAutoModelForMaskedLM` for masked language models"
          " and `TFAutoModelForSeq2SeqLM` for encoder-decoder models.",
          FutureWarning,
      )
      return super().from_pretrained(
          pretrained_model_name_or_path, *model_args, **kwargs
      )
  
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 2 for calling the TFAutoModelWithLMHead obj's underlying member method code with example usage: obj.from_pretrained(cls, pretrained_model_name_or_path) and returns: super