class_docstr: `FeatureConnector` for integer class labels.
docstr: See base class for details.
docstr_tok: ["See","base","class","for","details","."]
code: def save_metadata(self, data_dir, feature_name=None) -> None:
      """See base class for details."""
      # Save names if defined
      if self._str2int is not None:
          names_filepath = self.get_names_filepath(
              data_dir, feature_name
          )
          _write_names_to_file(names_filepath, self.names)
  
imports: from typing import Optional, Union
  from etils import epath
  import numpy
  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 8 for calling the ClassLabel obj's underlying member method code with example usage: obj.save_metadata(data_dir, feature_name) without return types