class_docstr: Image segmenter options metadata.
class_docstr_tok: ["Image","segmenter","options","metadata","."]
docstr: Creates the image segmenter options metadata.
  
  Returns:
    A Flatbuffers Python object of the custom metadata including image
    segmenter options metadata.
docstr_tok: ["Creates","the","image","segmenter","options","metadata",".","Returns",":","A","Flatbuffers","Python","object","of","the","custom","metadata","including","image","segmenter","options","metadata","."]
code: def create_metadata(self) -> _metadata_fb.CustomMetadataT:
      """Creates the image segmenter options metadata.
  
      Returns:
        A Flatbuffers Python object of the custom metadata including image
        segmenter options metadata.
      """
      segmenter_options = (
          _segmenter_metadata_fb.ImageSegmenterOptionsT()
      )
      segmenter_options.activation = self.activation.value
  
      # Get the image segmenter options flatbuffer.
      b = flatbuffers.Builder(0)
      b.Finish(
          segmenter_options.Pack(b), self._METADATA_FILE_IDENTIFIER
      )
      segmenter_options_buf = b.Output()
  
      # Add the image segmenter options flatbuffer in custom metadata.
      custom_metadata = _metadata_fb.CustomMetadataT()
      custom_metadata.name = self.name
      custom_metadata.data = segmenter_options_buf
      return custom_metadata
  
file_path: mediapipe/mediapipe/tasks/python/metadata/metadata_writers/image_segmenter.py
imports: import enum
  from typing import List, Optional
  import flatbuffers
  from mediapipe.tasks.metadata import image_segmenter_metadata_schema_py_generated
  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 metadata_writer
  from mediapipe.tasks.python.metadata.metadata_writers import writer_utils
label_desc: Use image node_id 2 for calling the ImageSegmenterOptionsMd obj's underlying member method code with example usage: obj.create_metadata() and returns: custom_metadata