code: def __init__(
      self,
      cfg: Optional[Dict] = None,
      subsample_rate: float = 0.25,
      mean_pool: str2bool = True,
      mean_join_pool: str2bool = False,
      remove_zeros: str2bool = False,
  ):
      super().__init__()
      assert check_argument_types()
  
      if cfg is not None:
          cfg = argparse.Namespace(**cfg["segmentation"])
          assert cfg.type == "JOIN"
          self.subsampling_rate = cfg.subsample_rate
          self.mean_pool = cfg.mean_pool
          self.mean_pool_join = cfg.mean_pool_join
          self.remove_zeros = cfg.remove_zeros
      else:
          self.mean_pool_join = mean_join_pool
          self.remove_zeros = remove_zeros
  
file_path: espnet/espnet2/uasr/segmenter/join_segmenter.py
imports: import argparse
  from typing import Dict, Optional
  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 JoinSegmenter object from inherited base classes: AbsSegmenter with example: obj = JoinSegmenter(cfg, subsample_rate, mean_pool, mean_join_pool, remove_zeros)