code: def __assert_default_text_is_val(self, text):
      if not isinstance(text, str):
          raise ValueError("The text input must be a string")
      if not text:
          raise ValueError(
              "The text input must have at least one character"
          )
  
imports: from dataclasses import dataclass
  from typing import List, Union
  from datasets import Dataset
  from transformers import AutoModelForCausalLM, default_data_collator, TextGenerationPipeline
  from happytransformer.adaptors import get_adaptor
  from happytransformer.args import GENEvalArgs, GENTrainArgs
  from happytransformer.fine_tuning_util import csv_tok_text_gen_mlm, EvalResult, tok_text_gen_mlm
  from happytransformer.happy_transformer import HappyTransformer
label_desc: Use image node_id 3 for calling the HappyGeneration obj's underlying member method code with example usage: obj.__assert_default_text_is_val(text) without return types