third_party/tflite_support/src/tensorflow_lite_support/metadata/python/metadata.py
def _populate_associated_files(self):
    """Concatenates associated files after TensorFlow Lite model file.

    If the MetadataPopulator object is created using the method,
    with_model_file(model_file), the model file will be updated.
    """
    # Opens up the model file in "appending" mode.
    # If self._model_file already has pack files, zipfile will concatenate
    # addition files after self._model_file. For example, suppose we have
    # self._model_file = old_tflite_file | label1.txt | label2.txt
    # Then after trigger populate() to add label3.txt, self._model_file becomes
    # self._model_file = old_tflite_file | label1.txt | label2.txt | label3.txt
    with zipfile.ZipFile(self._model_file, "a") as zf:
      for af in self._associated_files:
        filename = os.path.basename(af)
        zf.write(af, filename)
Concatenates associated files after TensorFlow Lite model file.

    If the MetadataPopulator object is created using the method,
    with_model_file(model_file), the model file will be updated.
    
Concatenates associated files after TensorFlow Lite model file.
If the MetadataPopulator object is created using the method,
with_model_file(model_file), the model file will be updated.
Concatenates associated files after TensorFlow Lite model file . If the MetadataPopulator object is created using the method with_model_file ( model_file ) the model file will be updated .
def _populate_associated_files(self):
     | label3.txt
    with zipfile.ZipFile(self._model_file, "a") as zf:
      for af in self._associated_files:
        filename = os.path.basename(af)
        zf.write(af, filename)
def _populate_associated_files ( self ) : with zipfile . ZipFile ( self . _model_file , "a" ) as zf : for af in self . _associated_files : filename = os . path . basename ( af ) zf . write ( af , filename )
Concatenates associated files after TensorFlow Lite model file.
Concatenates associated files after TensorFlow Lite model file .
"""Concatenates associated files after TensorFlow Lite model file.

    If the MetadataPopulator object is created using the method,
    with_model_file(model_file), the model file will be updated.
    """ # Opens up the model file in "appending" mode. # If self._model_file already has pack files, zipfile will concatenate # addition files after self._model_file. For example, suppose we have # self._model_file = old_tflite_file | label1.txt | label2.txt # Then after trigger populate() to add label3.txt, self._model_file becomes # self._model_file = old_tflite_file | label1.txt | label2.txt | label3.txt
self