class_docstr: A manifest file wrapper used to read and write tft cache manifest files.
class_docstr_tok: ["A","manifest","file","wrapper","used","to","read","and","write","tft","cache","manifest","files","."]
docstr: Writes the manifest to the file.
code: def write(self, manifest: Mapping[str, int]):
      """Writes the manifest to the file."""
      try:
          # First attempt to delete the manifest if it exists in case it can't be
          # edited in-place.
          self._delete()
      except tf.errors.NotFoundError:
          pass
      self._open()
      # Manifests are small, so writing in a semi-human readable form (protocol=0)
      # is preferred over the efficiency gains of higher protocols.
      assert self._file is not None
      self._file.write(pickle.dumps(manifest, protocol=0))
  
imports: import os
  import pickle
  import re
  import sys
  from typing import Iterable, Mapping, List, Optional, Union, Tuple
  import apache_beam
  import tensorflow
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 9 for calling the _ManifestFile obj's underlying member method code with example usage: obj.write(manifest) without return types