code: def test_text_config():
      granularity = "sentence"
      language = "german"
      text_config = TextConfig(
          granularity=granularity,
          language=language,
      )
      expected_config = {
          "granularity": granularity,
          "language": language,
      }
      assert expected_config == text_config.get_text_config()
  
imports: from __future__ import absolute_import, print_function
  import copy
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker import Processor, image_uris
  from sagemaker.clarify import BiasConfig, DataConfig, ModelConfig, ModelPredictedLabelConfig, PDPConfig, SageMakerClarifyProcessor, SHAPConfig, TextConfig, ImageConfig, _AnalysisConfigGenerator, DatasetType, ProcessingOutputHandler, SegmentationConfig
label_desc: Use image node_id 22 for calling a global function with example usage: test_text_config() without return types