code: def is_transformers_lm(model):
      """Check if the given model object is a huggingface transformers language model."""
      return (
          safe_isinstance(model, "transformers.PreTrainedModel")
          or safe_isinstance(model, "transformers.TFPreTrainedModel")
      ) and safe_isinstance(
          model, MODELS_FOR_SEQ_TO_SEQ_CAUSAL_LM + MODELS_FOR_CAUSAL_LM
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_transformers_lm(model) and returns: unknown