code: def __init__(
      self,
      subsample_rate: float = 0.25,
      mean_pool: str2bool = True,
      mean_join_pool: str2bool = False,
      remove_zeros: str2bool = False,
  ):
      super().__init__()
      assert check_argument_types()
      self.subsample_rate = subsample_rate
  
file_path: espnet/espnet2/uasr/segmenter/random_segmenter.py
imports: import math
  import torch
  from typeguard import check_argument_types
  from espnet2.uasr.segmenter.abs_segmenter import AbsSegmenter
  from espnet2.utils.types import str2bool
label_desc: Use image node_id 1 to create a new RandomSegmenter object from inherited base classes: AbsSegmenter with example: obj = RandomSegmenter(subsample_rate, mean_pool, mean_join_pool, remove_zeros)