code: def get_nested_video_frames(directory, file_extension):
      return {
          "P02_001": VideoFrameInfo(
              video_id="P02_001",
              location=f"{directory}/P02",
              frame_file_stem="P02_001_",
              frame_string_length=16,
              min_frame_number=1,
              max_frame_number=3000,
              file_extension=file_extension,
          ),
          "P02_002": VideoFrameInfo(
              video_id="P02_002",
              location=f"{directory}/P02",
              frame_file_stem="P02_002_",
              frame_string_length=16,
              min_frame_number=2,
              max_frame_number=3001,
              file_extension=file_extension,
          ),
          "P02_005": VideoFrameInfo(
              video_id="P02_005",
              location=f"{directory}/P02",
              frame_file_stem="P02_005_",
              frame_string_length=16,
              min_frame_number=1,
              max_frame_number=30003,
              file_extension=file_extension,
          ),
          "P07_002": VideoFrameInfo(
              video_id="P07_002",
              location=f"{directory}/P07",
              frame_file_stem="P07_002_",
              frame_string_length=16,
              min_frame_number=2,
              max_frame_number=1530,
              file_extension=file_extension,
          ),
      }
  
file_path: pytorchvideo/tests/test_data_epic_kitchen_utils.py
imports: import os
  import tempfile
  import unittest
  import unittest.mock
  from pathlib import Path
  from pytorchvideo.data.dataset_manifest_utils import EncodedVideoInfo, VideoFrameInfo
  from pytorchvideo.data.epic_kitchen.utils import build_encoded_manifest_from_nested_directory, build_frame_manifest_from_flat_directory, build_frame_manifest_from_nested_directory
label_desc: Use image node_id 3 for calling a global function with example usage: get_nested_video_frames(directory, file_extension) and returns: dict