code: def test_should_exclude_text(column_count, avg_words, expected):
      field = FieldInfo(
          name="sentence",
          dtype=TEXT,
          avg_words=avg_words,
          num_distinct_values=ROW_COUNT,
      )
      assert (
          should_exclude(
              0, field, TEXT, column_count, ROW_COUNT, {TARGET_NAME}
          )
          == expected
      )
  
file_path: ludwig/tests/ludwig/utils/automl/test_type_inference.py
imports: import random
  import pytest
  from ludwig.constants import AUDIO, BINARY, CATEGORY, DATE, IMAGE, NUMBER, TEXT
  from ludwig.data.dataset_synthesizer import generate_string
  from ludwig.utils.automl.field_info import FieldInfo
  from ludwig.utils.automl.type_inference import infer_type, should_exclude
label_desc: Use image node_id 5 for calling a global function with example usage: test_should_exclude_text(column_count, avg_words, expected) without return types