class_docstr: Selector that retains at most `k` first frames
class_docstr_tok: ["Selector","that","retains","at","most","`","k","`","first","frames"]
code: def __init__(self, k: int):
      self.k = k
  
file_path: detectron2/projects/DensePose/densepose/data/video/frame_selector.py
imports: import random
  from collections.abc import Callable
  from enum import Enum
  from typing import Callable
  from typing import List
label_desc: Use image node_id 1 to create a new FirstKFramesSelector object from inherited base classes: Callable with example: obj = FirstKFramesSelector(k)