class_docstr: A coder to encode CSV formatted data.
class_docstr_tok: ["A","coder","to","encode","CSV","formatted","data","."]
docstr: Encode a tf.transform encoded dict to a csv-formatted string.
  
  Args:
    instance: A python dictionary where the keys are the column names and the
      values are fixed len or var len encoded features.
  
  Returns:
    A csv-formatted string. The order of the columns is given by column_names.
docstr_tok: ["Encode","a","tf.transform","encoded","dict","to","a","csv-formatted","string",".","Args",":","instance",":","A","python","dictionary","where","the","keys","are","the","column","names","and","the","values","are","fixed","len","or","var","len","encoded","features",".","Returns",":","A","csv-formatted","string",".","The","order","of","the","columns","is","given","by","column_names","."]
code: def encode(self, instance):
      """Encode a tf.transform encoded dict to a csv-formatted string.
  
      Args:
        instance: A python dictionary where the keys are the column names and the
          values are fixed len or var len encoded features.
  
      Returns:
        A csv-formatted string. The order of the columns is given by column_names.
      """
      string_list = [None] * len(self._column_names)
      for feature_handler in self._feature_handlers:
          try:
              feature_handler.encode_value(
                  string_list, instance[feature_handler.name]
              )
          except TypeError as e:
              raise TypeError(
                  '{} while encoding feature "{}"'.format(
                      e, feature_handler.name
                  )
              )
      return self._encoder.encode_record(string_list)
  
file_path: transform/tensorflow_transform/coders/csv_coder.py
imports: import csv
  import io
  import numpy
  import tensorflow
  from tensorflow_transform.tf_metadata import schema_utils
label_desc: Use image node_id 3 for calling the CsvCoder obj's underlying member method code with example usage: obj.encode(instance) and returns: self