class_docstr: DatasetBuilder for tao dataset.
class_docstr_tok: ["DatasetBuilder","for","tao","dataset","."]
docstr: Creates the metadata object for each video data example.
docstr_tok: ["Creates","the","metadata","object","for","each","video","data","example","."]
code: def _create_metadata(
      self, video_ann: NestedDict, num_frames: int
  ) -> NestedDict:
      """Creates the metadata object for each video data example."""
      metadata = {}
      metadata["num_frames"] = num_frames
      metadata["height"] = (
          self.builder_config.height or video_ann["height"]
      )
      metadata["width"] = (
          self.builder_config.width or video_ann["width"]
      )
      metadata["neg_category_ids"] = video_ann["neg_category_ids"]
      metadata["not_exhaustive_category_ids"] = video_ann[
          "not_exhaustive_category_ids"
      ]
      metadata["dataset"] = video_ann["metadata"]["dataset"]
      metadata["video_name"] = video_ann["name"]
      return metadata
  
imports: from __future__ import annotations
  import collections
  import json
  import os
  from typing import Any, Dict, Optional, Tuple
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the Tao obj's underlying member method code with example usage: obj._create_metadata(video_ann, num_frames) and returns: metadata