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","."]
code: def __init__(self, writer: MetadataWriter) -> None:
      self.writer = writer
  
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 1 to create a new MetadataWriterBase object  with example: obj = MetadataWriterBase(writer)