class_docstr: Base MetadataWriter class which contains the apis exposed to users.
  
  MetadataWriter for Tasks e.g. image classifier / object detector will inherit
  this class for their own usage.
class_docstr_tok: ["Base","MetadataWriter","class","which","contains","the","apis","exposed","to","users",".","MetadataWriter","for","Tasks","e.g",".","image","classifier","\/","object","detector","will","inherit","this","class","for","their","own","usage","."]
docstr: Populates metadata into the TFLite file.
  
  Note that only the output tflite is used for deployment. The output JSON
  content is used to interpret the metadata content.
  
  Returns:
    A tuple of (model_with_metadata_in_bytes, metadata_json_content)
code: def populate(self) -> Tuple[bytearray, str]:
      """Populates metadata into the TFLite file.
  
      Note that only the output tflite is used for deployment. The output JSON
      content is used to interpret the metadata content.
  
      Returns:
        A tuple of (model_with_metadata_in_bytes, metadata_json_content)
      """
      return self.writer.populate()
  
imports: import collections
  import csv
  import dataclasses
  import os
  import tempfile
  from typing import List, Optional, Tuple, Union
  import flatbuffers
  from mediapipe.tasks.metadata import metadata_schema_py_generated
  from mediapipe.tasks.python.metadata import metadata
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_info
  from mediapipe.tasks.python.metadata.metadata_writers import writer_utils
label_desc: Use image node_id 2 for calling the MetadataWriterBase obj's underlying member method code with example usage: obj.populate() and returns: self