class_docstr: `FeatureConnector` for text, encoding to integers with a `TextEncoder`.
code: def to_json_content(
      self,
  ) -> Union[
      Json, feature_pb2.TextFeature
  ]:  # pytype: disable=signature-mismatch  # overriding-return-type-checks
      if self._encoder:
          logging.warning(
              "Dataset is using deprecated text encoder API which will be removed "
              "soon. Please use the plain_text version of the dataset and migrate "
              "to `tensorflow_text`."
          )
          return dict(use_encoder=True)
      return feature_pb2.TextFeature()
  
imports: import html
  import os
  import textwrap
  from typing import Union
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.core.deprecated import text
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.features import tensor_feature
  from tensorflow_datasets.core.proto import feature_pb2
  from tensorflow_datasets.core.utils import type_utils
label_desc: Use image node_id 17 for calling the Text obj's underlying member method code with example usage: obj.to_json_content() and returns: feature_pb2, dict