class_docstr: `FeatureConnector` for text, encoding to integers with a `TextEncoder`.
docstr: Set encoder, but no-op if encoder is already set.
docstr_tok: ["Set","encoder",",","but","no-op","if","encoder","is","already","set","."]
code: def maybe_set_encoder(self, new_encoder):
      """Set encoder, but no-op if encoder is already set."""
      if self.encoder:
          return
      self.encoder = new_encoder
  
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 4 for calling the Text obj's underlying member method code with example usage: obj.maybe_set_encoder(new_encoder) without return types