class_docstr: DatasetBuilder for tao dataset.
class_docstr_tok: ["DatasetBuilder","for","tao","dataset","."]
docstr: Resizes the video depending on the build_config.
docstr_tok: ["Resizes","the","video","depending","on","the","build_config","."]
code: def _maybe_resize_video(self, frames_list):
      """Resizes the video depending on the build_config."""
      if self.builder_config.height is None:
          return (
              frames_list  # Don't waste compute loading and resizing.
          )
      resized_images = []
      cv2 = tfds.core.lazy_imports.cv2
      for frame in frames_list:
          with epath.Path(frame).open("rb") as f:
              image = tfds.core.lazy_imports.PIL_Image.open(f).convert(
                  "RGB"
              )
              image = np.asarray(image)
          image = cv2.resize(
              image,
              (self.builder_config.width, self.builder_config.height),
          )
          resized_images.append(image)
      return resized_images
  
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 3 for calling the Tao obj's underlying member method code with example usage: obj._maybe_resize_video(frames_list) and returns: resized_images, frames_list